APIs & Integrations

LGarcia9
Membre

Insufficient scopes were provided

Résolue

I'm getting this error when I try to install my application:

 

LGarcia9_0-1660657356005.png

What's weird because the only scope I'm requesting are: "crm.objects.contacts.read,crm.schemas.contacts.read" 

 

And on apps's scopes list they are there:

LGarcia9_1-1660657533681.png

I don't know if I'm doing something wrong.

But basically I did:

  1. Created app
  2. Added the scopes
  3. Clone the https://github.com/HubSpot/oauth-quickstart-nodejs
  4. Add CLIENT_ID and CLIENT_SECRET
  5. yarn install and yarn start
  6. Tried to install the app on an account test.

Someone can assist me? 

0 Votes
1 Solution acceptée
LGarcia9
Solution
Membre

Insufficient scopes were provided

Résolue

I found the issue, I added more scopes on admin than I was adding on url, The scopes that are listed in your app need to match the scopes you list in your authorization call.

 

That is the reason for the issue, after I removed the unnecessary scopes from App, and add all of them on url, it worked. 

 

Thanks

Voir la solution dans l'envoi d'origine

0 Votes
3 Réponses
LGarcia9
Solution
Membre

Insufficient scopes were provided

Résolue

I found the issue, I added more scopes on admin than I was adding on url, The scopes that are listed in your app need to match the scopes you list in your authorization call.

 

That is the reason for the issue, after I removed the unnecessary scopes from App, and add all of them on url, it worked. 

 

Thanks

0 Votes
dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Insufficient scopes were provided

Résolue

@LGarcia9 , did you add the scopes in the install URL?  If your app has all of these scopes selected, you will also need to add all of them to the install URL

0 Votes
LGarcia9
Membre

Insufficient scopes were provided

Résolue
0 Votes