APIs & Integrations

angelopublio
Participante | Parceiro Platinum
Participante | Parceiro Platinum

Problem to get a token with a HubSpot Marketing Professional

resolver

 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 Avaliação positiva
1 Solução aceita
angelopublio
Solução
Participante | Parceiro Platinum
Participante | Parceiro Platinum

Problem to get a token with a HubSpot Marketing Professional

resolver

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.

Exibir solução no post original

3 Respostas 3
cbarley
HubSpot Employee
HubSpot Employee

Problem to get a token with a HubSpot Marketing Professional

resolver

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 Avaliação positiva
angelopublio
Solução
Participante | Parceiro Platinum
Participante | Parceiro Platinum

Problem to get a token with a HubSpot Marketing Professional

resolver

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 Employee
HubSpot Employee

Problem to get a token with a HubSpot Marketing Professional

resolver

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