“Request failed with status code 401” that apparently is due to authentication issues, but the access token is right and the scope too for hubdb connections, i don’t know why is the error, i’m using it in a serverless function inside my hubspot account.
I tried using the code hubspot recommeded from Accounts Dashboard | HubSpot but the path seems to be bad, because it brings me the error “TypeError: Cannot read property ‘hubdb’ of undefined” when i use “hs logs”, so i found this post that apperars to be the same error with other path but i tried with others and i can’t found the right one.
@ESalas7 Any luck with this? I am stuck in the same position, caught out by the documentation at Accounts Dashboard | HubSpot which refers to a bad path.
The only thing i changed was adding de “response.data” into the send response function and magically everything rans perfectly, i hope this works for you too.
@ESalas7 Thanks for that! This worked perfectly. I didn’t realise you already replied with this above. The order of the replies and the indentation was a little confusing. Thanks for your help.
The only thing i changed was adding de “response.data” into the send response function and magically everything rans perfectly :), i hope this works for you too.