Hopefully folks can help out! Our app is working just fine for most people - they can connect via OAuth and everything goes swimmingly.
However, for one specific customer we’re getting a 401 response from the API with the following body:
{"status":"error","message":"Authentication credentials not found. This API supports both API Key and OAuth 2.0 authentication and you can find more details at https://developers.hubspot.com/docs/methods/auth/oauth-overview","correlationId":"4c128e58-3641-47e3-8dec-7ca3a6526d25","category":"INVALID_AUTHENTICATION"}
If you look at the request we’re sending, the Authorization header is definitely there along with an OAuth token:
Hi @PamCotton, thanks for that but I don’t think that’s the issue here - I’m definitely adding the header and as I said it’s working with the exact same code path for a number of other users - it’s definitely something specific to this one account. I wonder if there’s something about the subscription?
Chris this one did it for me thank you so much, I was at it for 2 days lol. I know I added the access token so for sanity check I added logs which I checked on the hs cli logs and bingo my token was there. Just followed your advice and I got it fixed, again thanks a lot!!!