Scope Error using Hubspot Trigger

Hi there :slight_smile:

I’m having issues with the Hubspot Trigger nodes.

I’ve followed all the steps there : HubSpot | Docs
I’ve created an hubspot dev account especialy for that.

When i try to connect my account i’m having an error : " Couldn’t complete the connection

Insufficient scopes were provided. Please contact the app developer."

I’ve changed the scope, checking everything, unchecking etc but did not help.

Maybe someone here will have some idea about this :slight_smile:
Thank you :slight_smile:

Hi @dubarseo, I’m sorry to hear you’re encountering this behaviour :frowning:

I could reproduce this myself when selecting all scopes. My first (wild) guess would be that Hubspot has changed available scopes since the integration was created. n8n requests a scope which no longer seems to exist based on a quick search:

They documentation still mentions contacts though so I’m not 100% sure what’s causing the trouble. I’ll see if I can update the requested scopes on my end to make this work again and will report back.

1 Like

You may be right ! It seems that Hubspot have changed something on their API yesterday : Hubspot CRM Integration - Scope Issue - Nov 21 update | Page 2 | 3CX Forums

1 Like

Just a quick update, this seems to be the cause indeed.

Replacing 'contacts' with '', '' in the code lets me authenticate again:

I am not sure if these two scopes (or just one of them) are already sufficient, but I’ve blocked some time to take a closer look into this tomorrow. Thanks so much for reporting this bug @dubarseo and sorry for the trouble this causes. From looking at Hubspot’s documentation this error comes as a surprise at least to me :see_no_evil:

1 Like

After testing this some more, I could get the Hubspot Trigger node with all options to work when using oauth,,,,,, scopes and I’ve raised a PR for this:

What really bothers me is that contacts still appears in Hubspot’s documentation as an available scope (available to “Any account” and covering contact, companies and deals) but clearly is no longer available.


Thank you for your help, i will wait for the fix :slight_smile:

Hi @MutedJam ! Thanks for being all over this :mechanical_arm:

Was it just on your n8n Hubspot Trigger Node Credentials you were able to authenticate using those scopes? Or were you able to also authenticate on n8n Hubspot Oauth2 API Credentials?

I am creating a new app for our Hubspot to use n8n for Hubspot Triggers. I am trying to authenticate n8n credentials for Hubspot Oauth2 API and I am getting the ‘insufficient scopes provided’ error despite matching your scopes.

See below for screenshots. Note: I removed any data on the n8n Hubspot Oauth2 API screenshot given this is a public forum.


Have you heard/learned anything more since your last post? If our scopes are matching yours, do you have any idea what could be causing the error?

Thanks in advance and sorry to bother.

Welcome to the community @olliecorbs

This is probably because this PR has not been merged. Hence, the Hubspot OAuth2 credentials are still using the old scopes. I’m working on a fix with @MutedJam, so hopefully, it will be available in the next release.