APIs & Integrations

LGarcia9
Membro

Insufficient scopes were provided

resolver

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 Avaliação positiva
1 Solução aceita
LGarcia9
Solução
Membro

Insufficient scopes were provided

resolver

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

Exibir solução no post original

0 Avaliação positiva
3 Respostas 3
LGarcia9
Solução
Membro

Insufficient scopes were provided

resolver

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 Avaliação positiva
dennisedson
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

Insufficient scopes were provided

resolver

@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 Avaliação positiva
LGarcia9
Membro

Insufficient scopes were provided

resolver
0 Avaliação positiva