HubSpot Integration Auth Error

Stevens2

Titanium Partner
Basic Certified
Joined
Sep 6, 2022
Messages
8
Reaction score
1
Hi all,

I have followed the HubSpot CRM Integration guide, but I am having issues completing the last bit for authentication.
I believe the issue is the redirect url it is showing http:localhost%% instead of the https://pbx.comapi/oauth2crm" I did edit the json file correctly and validated but it still shows local host any ideas?

Thanks!

​

 
Has the host file of the server been modified?
 
Has the host file of the server been modified
I haven't modified any host files just copied the guide. I am doing this on my pc locally the PBX is hosted in the cloud. Could that be the issue?
 
Hi @Stevens2, running the HubSpot CLI on your local PC while 3CX is hosted in the cloud is fine.

After saving the correct PBX redirect URL in src\app\app-hsmeta.json, did you run hs project upload again from the project folder?

Where exactly are you seeing localhost—in the terminal, the HubSpot app settings, or the browser after clicking Authorize in 3CX? A screenshot with any credentials hidden would help.
 
Hi @Stevens2, running the HubSpot CLI on your local PC while 3CX is hosted in the cloud is fine.

After saving the correct PBX redirect URL in src\app\app-hsmeta.json, did you run hs project upload again from the project folder?

Where exactly are you seeing localhost—in the terminal, the HubSpot app settings, or the browser after clicking Authorize in 3CX? A screenshot with any credentials hidden would help.
Hi KyriacosS_3CX,

Thanks for confirming.
Yes I have run hs project upload everything looks good.
I am seeing localhost in the HubSpot app settings in approved accounts. If I copy the install link.
When I click Authorise on 3CX, I see 1795089130470.png

​

After the https:%3a, I do see the correct PBX name but not seeing this at all on HubSpot, so they don't match, which is correct, as the error code received is
Couldn’t complete the connection
Authorisation failed as the redirect URL 'https******.3cx.uk/api/oauth2crm' doesn't match the app's registered redirect URL. Please consult the app developer.
 
The Redirect URL is registered in the app you create in Hubspot, probably you made a typo there.
 
  • Like
Reactions: Alejandro_3CX

Latest Posts

Forum statistics

Threads
112,547
Messages
593,146
Members
165,757
Latest member
Aline