APIs & Integrations

angelopublio
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Problem to get a token with a HubSpot Marketing Professional

SOLVE

 When we use oAuth2 to connect to HubSpot Free accounts, everything works fine, but we get an internal error when we try to get a token using our HubSpot Marketing Hub Professional.

 

We are using Python, but we are debugging using Postman trying to solve this.


Our App ID: 188549 and we are trying to connect to our HubID account: 407592

 

{
"status": "error",
"message": "internal error",
"correlationId": "3b9cdc3c-0b32-44f4-ac29-3f302ea52281",
"requestId": "8ac99b721dc8d8777e4174334e6435c8"
}

 

NA5Implementação HubSpot Enterprise pra ontem sem dor de cabeça.
0 Upvotes
1 Accepted solution
angelopublio
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Problem to get a token with a HubSpot Marketing Professional

SOLVE

Hi @cbarley, I identified that there is a problem with my user.  I created another user as SuperAdmin and worked!

 

Thanks for your help!!

 

Best,

Angelo

NA5Implementação HubSpot Enterprise pra ontem sem dor de cabeça.

View solution in original post

3 Replies 3
cbarley
HubSpot Alumni
HubSpot Alumni

Problem to get a token with a HubSpot Marketing Professional

SOLVE

Hi @angelopublio , I was able to generate access and refresh tokens for your account by using my own authentication url successfully. I wonder if the issue is that the site https://app.na5.com.br/hubspot/authorize cannot be reached. I would see if you can try building another authentication URL with a site that's live, then see if you can generate access tokens from there. 

 

Here's what I used for my auth URL: 

https://app.hubspot.com/oauth/authorize?client_id=28e34ca8-2b36-44ea-8b71-e1150c080ee4&scope=contact...

 

and the fields for my POST to https://api.hubapi.com/oauth/v1/token, with a header of Content-Type set to x-www-form-urlencoded:

grant_type:authorization_code
client_id:28e34ca8-2b36-44ea-8b71-e1150c080ee4
client_secret:XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX
redirect_uri:https://wwww.playtimepottery.net
code:a1e3f309-335d-4c91-b721-862319d37ffa

I got a successful response and was given a refresh and access token. 

 

By the way, I would probably remove your screenshot that shows your client secret and ID. Those things can be used by others who come across this forum and authenitcate your app to other portals for free.

0 Upvotes
angelopublio
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Problem to get a token with a HubSpot Marketing Professional

SOLVE

Hi @cbarley, I identified that there is a problem with my user.  I created another user as SuperAdmin and worked!

 

Thanks for your help!!

 

Best,

Angelo

NA5Implementação HubSpot Enterprise pra ontem sem dor de cabeça.
cbarley
HubSpot Alumni
HubSpot Alumni

Problem to get a token with a HubSpot Marketing Professional

SOLVE

Got it! Glad you were able to get things to work 🙂