Hi I was trying to connect hubspot trigger to hubspot developer application. I followed the documentation
HubSpot - n8n Documentation and gave all mentioned scopes but I have an issue of insufficient scopes.
Have you an idea about this issue ?
n8n version : 0.172.0
@wassim, welcome to the community!
I am very sorry to hear you’re having trouble. The “HubSpot Developer API” credentials (which combine OAuth2 with developer-token-based authentication) are incredibly annoying to get right.
Personally, I’d almost always go for the regular node (allowing much simpler token-based authentication) and poll my data in short intervals over using the trigger.
However, if you do want to use the trigger you might find
this mega thread on various Hubspot authentication issues helpful. It has a few points you might want to double-check.
Unfortunately I tried these suggestions but without a success. I even tried a fresh n8n version.
I really prefer to use trigger to get near real time integration.
Oh, I’m sorry to hear this didn’t help. I’ve set some time aside to run through the Hubspot authentication once again next week to see if anything might have changed since.
@wassim, I tried authenticating once again from scratch. Here’s what I did:
Ensure I have both an app and a developer account:
Apps page of my developer account, I requested the developer API key like so:
Copied and pasted the key in the respective field of the n8n credentials screen:
Created a new app:
Auth tab for the new app, copied App ID, Client ID and Client Secret into the respective fields in n8n:
Back on the Hubspot
Auth tab, selected scopes from the documentation (if you can’t see these exact scopes you might need to create a fresh Hubspot developer account - some older accounts don’t seem to have access to those):
Copied the redirect URL from n8n into the respective field on Hubspot’s
Auth tab and saved changes:
Clicked “Connect my account” on the n8n credentials screen. In the Hubspot pop-up, picked the App account (
not the dev account):
Confirmed the permissions for your app by clicking “Connect app”:
So while this is super cumbersome and error-prone, the process still worked. You might want to compare step by step that you picked the right values in each field.
June 9, 2022, 10:50am
Thank you! It worked. I think issue last time was by adding more scopes than required.
Glad to hear, thanks so much for confirming!
I can confirm the same issue - I had to
remove extra scopes to make it work. May want to update the documentation to state this in big bold letters