CMS Development

jk-sone
Participant

Invalid Access Token When Trying to Run hs init

SOLVE

I've installed the latest version of HubSpot's CLI tools (3.0.10) and am trying to run "hs init" in a newly created directory. I am able to generate a personal access key but everytime I paste in a new one and give it a unique reference, I get the following error:

 

"[ERROR] A Error has occurred. Error while retrieving new access token: The provided token is invalid.
Your personal access key is invalid. Please run "hs auth personalaccesskey" to reauthenticate. "

 

And, when I attempt to run "hs auth personalaccesskey", I get this error:

"[ERROR] No config file was found. To create a new config file, use the "hs init" command."

 

A circular problem -- I'd welcome any recommendations for how to proceed. Thanks for your help.

0 Upvotes
1 Accepted solution
jk-sone
Solution
Participant

Invalid Access Token When Trying to Run hs init

SOLVE

Following the discussion with a similar issue here:

 

https://community.hubspot.com/t5/CMS-Development/Local-Development-error/td-p/506001

 

I shut down my VPN, then uninstalled and re-installed the CLI tools -- success! Hopes this proves helpful to others.

View solution in original post

jk-sone
Solution
Participant

Invalid Access Token When Trying to Run hs init

SOLVE

Following the discussion with a similar issue here:

 

https://community.hubspot.com/t5/CMS-Development/Local-Development-error/td-p/506001

 

I shut down my VPN, then uninstalled and re-installed the CLI tools -- success! Hopes this proves helpful to others.

dennisedson
Community Manager
Community Manager

Invalid Access Token When Trying to Run hs init

SOLVE

Thanks for sharing @jk-sone !

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes