# Bad Client ID

**URL:** <https://community.hubspot.com/t/bad-client-id/109144>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [June 11, 2024, 6:47pm UTC](https://community.hubspot.com/t/bad-client-id/109144 "2024-06-11T18:47:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLindenberg](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@BLindenberg](https://community.hubspot.com/u/BLindenberg)\
**Post date:** [June 11, 2024, 6:47pm UTC](https://community.hubspot.com/t/bad-client-id/109144/1 "2024-06-11T18:47:54Z")

</div>

Hi team!  
Our OAuth integration with HubSpot recently stopped working with the error referencing a bad client ID:

`Authentication failure! invalid_credentials: OAuth2::Error, {"status":"BAD_CLIENT_ID","message":"missing or unknown client id","correlationId":"97c3ec21-7ee2-4a43-b3e7-04de3311b198"}`

This same issue takes place across 3 of our apps, all of them using Rails + Devise + Omniauth gem. I can confirm that the CLIENT\_ID is correct and is correctly passed to the URL when making the initial request to HubSpot for the user to login and grant access.  
The scopes and redirect URI are also correct and initialized as recommended in devise.rb:

`config.omniauth :hubspot, ENV['HUBSPOT_CLIENT_ID'], ENV['HUBSPOT_SECRET_ID'], scope: 'crm.objects.contacts.write timeline crm.objects.companies.write crm.lists.write crm.lists.read crm.objects.deals.write crm.objects.contacts.read' unless !ENV['HUBSPOT_CLIENT_ID']`

Is anybody else experiencing this? I’m pretty stumped as I’ve tried various changes and cannot get HubSpot to recognize our client as valid.  
App ID: 283414  
Portal ID: 5935119  
Client ID: 6a7fc6d2-8dda-410b-b321-a85b1d143b5a  
Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Humashankar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/humashankar/32/30856_2.png) [@Humashankar](https://community.hubspot.com/u/Humashankar)\
**Post date:** [June 11, 2024, 10:27pm UTC](https://community.hubspot.com/t/bad-client-id/109144/2 "2024-06-11T22:27:07Z")

</div>

Hi @BLindenberg

To troubleshoot the ‘bad client ID’ error, try disconnecting your app from HubSpot and then reauthorize it through the OAuth flow.

Will look for accurate transmission of the Client ID during this process, as this may fully resolve the issue.

Keep us posted on the outcome.

**Hope this helps - Happy to help further!!**  
**Thank you very much and have a great one!**  
**Warm regards**

---

<div class="post-metadata">

**Author:** ![BLindenberg](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@BLindenberg](https://community.hubspot.com/u/BLindenberg)\
**Post date:** [June 11, 2024, 10:44pm UTC](https://community.hubspot.com/t/bad-client-id/109144/3 "2024-06-11T22:44:51Z")

</div>

Thank you for the response. I’ve disconnected our app and tried to re-connect via oauth at 22:43 UTC and still receive the same message. Client ID is 6a7fc6d2-8dda-410b-b321-a85b1d143b5a.

---

<div class="post-metadata">

**Author:** ![Humashankar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/humashankar/32/30856_2.png) [@Humashankar](https://community.hubspot.com/u/Humashankar)\
**Post date:** [June 12, 2024, 11:52am UTC](https://community.hubspot.com/t/bad-client-id/109144/4 "2024-06-12T11:52:00Z")

</div>

Hi @BLindenberg

Thanks for reverting with the outcome,

Seems it may need to be taken to the HubSpot developer support to get this addressed.

**Regards**

---

<div class="post-metadata">

**Author:** ![BLindenberg](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@BLindenberg](https://community.hubspot.com/u/BLindenberg)\
**Post date:** [June 12, 2024, 2:46pm UTC](https://community.hubspot.com/t/bad-client-id/109144/5 "2024-06-12T14:46:26Z")

</div>

Hi @Humashankar, thanks for the response. How can I get in touch with developer support? I’ve searched and have not been able to find a contact method.

---

<div class="post-metadata">

**Author:** ![Humashankar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/humashankar/32/30856_2.png) [@Humashankar](https://community.hubspot.com/u/Humashankar)\
**Post date:** [June 12, 2024, 3:43pm UTC](https://community.hubspot.com/t/bad-client-id/109144/6 "2024-06-12T15:43:00Z")

</div>

Hi @BLindenberg

Please make use of this

[Help Center (hubspot.com)](https://help.hubspot.com/?_gl=1*15uosgc*_ga*MjExMDY2MzAyMy4xNzE2NTkxODA3*_ga_LXTM6CQ0XK*MTcxNjU5MTgwNi4xLjEuMTcxNjU5Mzc3OC40NC4wLjA.)

 ![Humashankar_0-1718206964207.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/d/ed0c8087cf72123d9687798a815101151fe0da86.png)

**Regards**
