A HubSpotAuthError has occurred

Schascha
Participant

Unfortunately, it has not been possible to upload template files to my prod environment via the hubspot cli for a few days now.

 

A HubSpotAuthError has occurred. Error while retrieving new access token: User xxx in account xxx does not have access to the following scopes [crm.schemas.custom.write,crm.objects.custom.write] in the token. Please generate a new token and try again.

 

If I try to generate a new token with hs auth and visit the secure page an error is shown, that the actual token can not be shown (see image). Generating a new token leeds to the same scope error.

 

Bildschirmfoto 2024-09-17 um 12.06.25.png

I am not aware that we use custom objects 🤔

Any help will be great. Thanks.

0 Upvotes
1 Accepted solution
Schascha
Solution
Participant

The following helped: Since I was caught in a loop that kept leading to a token with scope errors that could no longer be displayed or edited, I created a new token and immediately deactivated it without reloading the page. I was then able to generate a new token without scope errors again. 

View solution in original post

0 Upvotes
3 Replies 3
Schascha
Solution
Participant

The following helped: Since I was caught in a loop that kept leading to a token with scope errors that could no longer be displayed or edited, I created a new token and immediately deactivated it without reloading the page. I was then able to generate a new token without scope errors again. 

0 Upvotes
Schascha
Participant

Thanks, I am in contact with HubSpot support. As a temporary solution, I have created a second admin account, which is not affected by the scope error.

0 Upvotes
Jaycee_Lewis
Thought Leader

Hey @Schascha 👋 Thanks for your post. That is definitely an interesting, and frustrating, situation. This may be “faster” to get a resolution with a support ticket. Either by you, or your admin if you cannot. And I am happy to help where I can. I did some digging through old support tickets looking for matching, exact or partial, cases. I found a similar case that didn't give me an answer, but did provide a few questions to ask (these answers will be helpful in dealing with support as well 😊

 

  • Does this portal have an Enterprise-level subscription?
  • If not, do you know if this portal ever did in the past but has since downgraded?
  • Or, if not, do you know if this portal had an Enterprise trial in the past? (your super admin might know this)
  • Lastly, if you DM me the HubID (portal ID) I can take a look to see if there were any tier changes in the past or if there was an Enterprise trial (I would not have access to the portal, but I can view some info from our internal tools)

One other step you can take (and that support may request from you) is to collect a HAR file. Basically, you'd set up your browser to record a HAR, step though the process you take to get to the error, save the HAR file, and then you can analyze it on your own:

  • Follow the steps listed here – How to collect a HAR file
  • Go through the process that gets you to the error
  • Once you have the error/warning, stop recording
  • Analyze and look for more specific scope (or other) warnings/errors — Google HAR Analyzer 

Thanks for the additional information. — Jaycee





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes