APIs & Integrations

LGarcia9
メンバー

Insufficient scopes were provided

解決

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 いいね!
1件の承認済みベストアンサー
LGarcia9
解決策
メンバー

Insufficient scopes were provided

解決

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 いいね!
3件の返信
LGarcia9
解決策
メンバー

Insufficient scopes were provided

解決

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 いいね!
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Insufficient scopes were provided

解決

@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 いいね!
LGarcia9
メンバー

Insufficient scopes were provided

解決
0 いいね!