{
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: '7070227d-f1a6-4dec-bf50-3ff52d7c4f29',
category: 'INVALID_AUTHENTICATION'
}
2023-04-28T17:24:42.112Z INFO 401
2023-04-28T17:24:42.112Z INFO {
date: 'Fri, 28 Apr 2023 17:24:42 GMT',
'content-type': 'application/json;charset=utf-8',
'content-length': '316',
connection: 'close',
'cf-ray': '7bf100123d5c5943-IAD',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
vary: 'origin',
'cf-cache-status': 'DYNAMIC',
'access-control-allow-credentials': 'false',
'x-hubspot-auth-failure': '401 Unauthorized',
'x-hubspot-correlation-id': '7070227d-f1a6-4dec-bf50-3ff52d7c4f29',
'x-trace': '2BCADEFF9EAC1EC6F060FF087DC2950FEAC4CDA6B8000000000000000000',
'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=QtvlmIGqU1BIUSnIGzG39klIxjRCkVC%2BvAKtoVTiF32d6vOMM242CXacvlGzhRoBUGoELHX%2FMx7tSupXFMgyKd66Bp7krZbtr56F1jkKxtGtvTb%2BBa891CE1cYLL7RZc"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}',
server: 'cloudflare',
'alt-svc': 'h3=":443"; ma=86400, h3-29=":443"; ma=86400'
}
This is happening for all function is the portal 😞
I've triple checked that the private app has the correct scope(it now has all of them), that the private app is accessible in the function(console logged it out), and still coming up with nothing.
We get no logs in the Private App HS view. The logs shown are from the terminal.
If I revert this back to api keys with no other changes the functino works as expected.
API Key to Private App Migration: Authentication credentials not found
Following up on this.
After working extensively with support and our CAM it was discovered that there is a bug on the HS side preventing the auth from being accepted by the endpoint 🙃.