Insufficient scopes were provided

I created the application according to the documentation and connected all scopes in general. I included the scopes available to any account in the scopes parameter in the get-request. Further, I have included all other scopes in the optional_scope parameter. But I still get the error.
Here is the full url of my request(I replaced client_id, redirect_uri and state):
https://app.hubspot.com/oauth/45411707/authorize?client_id=x&optional_scope=transactional-email+social+content+automation+hubdb+e-commerce+ctas.read&redirect_uri=x&scope=settings.users.read+cms.domains.read+cms.domains.write+cms.performance.read+crm.lists.read+crm.lists.write+crm.objects.companies.read+crm.objects.companies.write+crm.objects.contacts.read+crm.objects.contacts.write+crm.objects.deals.read+crm.objects.deals.write+crm.objects.line_items.read+crm.objects.line_items.write+crm.objects.marketing_events.read+crm.objects.marketing_events.write+crm.objects.owners.read+crm.objects.quotes.read+crm.objects.quotes.write+crm.schemas.companies.read+crm.schemas.companies.write+crm.schemas.contacts.read+crm.schemas.contacts.write+crm.schemas.deals.read+crm.schemas.deals.write+crm.schemas.line_items.read+crm.schemas.quotes.read+settings.billing.write+settings.currencies.write+settings.users.write+settings.users.teams.write+settings.currencies.read+settings.users.teams.read+accounting+actions+account-info.security.read+business-intelligence+communication_preferences.read+communication_preferences.read_write+communication_preferences.write+conversations.read+conversations.write+crm.export+crm.import+external_integrations.forms.access+files+files.ui_hidden.read+forms+forms-uploaded-files+integration-sync+media_bridge.read+media_bridge.write+oauth+sales-email-read+tickets+timeline&state=y

Hey @IIt2

If you retrieve the install URL from your developer account, pictured above do you see the same issue?

Its worth checking is that you’re sure the scope are set correcting in the developer account UI, and that they match the scopes being passed in:

Finally, making updates to the scopes can take time for the syste to fully update. If you’re rapidly testing it might be worth slowing down a little to ensure everything is caught up.

Happy to help out however I can!

Best,

I used the install url and it works, but it doesn’t use the optional_scope parameter that I would like to use. The scopes that are passed are strictly as set in the application. The issue is that some scopes are passed in the optional_scope parameter, instead of the scope parameter.