I'm getting 401 error with new Hubspot API for publish a hubdb table
SOLVE
With the code bellow i receive this message
"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.
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.
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.
I'm getting 401 error with new Hubspot API for publish a hubdb table
SOLVE
I tried using the code hubspot recommeded from https://developers.hubspot.com/docs/api/cms/hubdb 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.
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.
I'm getting 401 error with new Hubspot API for publish a hubdb table
SOLVE
@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.