Hello HubSpot Community,
I’m encountering an issue with the HubSpot API.
I’ve set up an OAuth app where users can sign in and grant permissions to my app.
Upon successful authentication, HubSpot sends a code to my backend, which I then exchange for a refresh token.
While this process has worked seamlessly for over 200 users, I’ve recently observed that some users, despite having the correct permissions, are unable to connect.
Upon inspecting my logs, I noticed an error associated with the /oauth/v1/token endpoint. This is where I attempt to exchange the received code from HubSpot for a refresh token. The error details are as follows:
"correlationId": "[ID was inserted here but hidden now]",
"message": "missing or unknown auth code",
"status": "BAD_AUTH_CODE"
I’ve searched the forum for insights but haven’t found a solution.
Has anyone experienced this or have any suggestions on how to resolve it?
Thank you in advance for your assistance!