APIs & Integrations

iBos
Member

Bad Request errors setting up account auth in HubSpot CLI

Following the instructions in the developer documentation, I've installed hubspot cli (v7.8.0)

 

Calling hs get-started gives an error [ERROR] A hubspot.config.yml file could not be found

 

Calling hs init or hs account auth gives a massive node.js error, the detailMessage is 'The request was bad.'

 

Looks like the failure is calling POST https://api.hubapi.com/content/filemapper/v1/cms-cli-usage

 

I've tried that in a REST client with the payload extracted from the error message and I get a 202 OK response

 

Any help?

0 Upvotes
1 Reply 1
kosalaindrasiri
Top Contributor | Partner
Top Contributor | Partner

Bad Request errors setting up account auth in HubSpot CLI

Hey @iBos,

Can you share your Node version?

 

As the documentations states "To develop on HubSpot locally, you’ll need to install Node.js, ... Versions 20 or higher are supported."

Reference: https://developers.hubspot.com/docs/developer-tooling/local-development/hubspot-cli/install-the-cli#...

 

Further reference about hs init command: https://developers.hubspot.com/docs/developer-tooling/local-development/hubspot-cli/reference#hs-ini...

 

Please check whether this is the issue.

 

Regards,

Kosala Indrasiri

CEO

Sanmark Solutions
Linkedin
Kosala Indrasiri
emailAddress
kosala@thesanmark.com
website
www.sanmarksolutions.com
linkedinwhatsapp
Book a Consultation

Did my post help answer your question? Mark this as a solution.

0 Upvotes