Hubspot Oauth2 redirect URL issue

Describe the issue/error/question

Hey folks, I’m trying to set up the Husbot trigger but facing an issue in the connection stage.

  1. Created the Trigger node in n8n
  2. Created the public app in the Hubspot
  3. Passed the App ID, Client ID and Client Secret to n8n
  4. Filled in the as the Redirect URL in Hubspot.
    The install URL (OAuth) in Hubspot reflected the changes and been changed to
  5. Granted the required scopes.

After trying to connect the app I get an error: Couldn’t complete the connection An invalid redirect_uri was provided. Please contact the app developer.

Not sure on how can I debug the connection further. Any advice appreciated.

Information on your n8n setup

  • n8n version: 0.193.4
  • Database you’re using (default: SQLite):
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via Docker

Hey @kidrulit,

It looks like Hubspot doesn’t like the callback URL, Is the correct URL for your n8n instance?