# Using Oauth and ruby client library not working

**URL:** <https://community.hubspot.com/t/using-oauth-and-ruby-client-library-not-working/73385>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [January 20, 2023, 12:56pm UTC](https://community.hubspot.com/t/using-oauth-and-ruby-client-library-not-working/73385 "2023-01-20T12:56:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RRanauro](https://avatars.discourse-cdn.com/v4/letter/r/f07891/32.png) [@RRanauro](https://community.hubspot.com/u/RRanauro)\
**Post date:** [January 20, 2023, 12:56pm UTC](https://community.hubspot.com/t/using-oauth-and-ruby-client-library-not-working/73385/1 "2023-01-20T12:56:36Z")

</div>

I downloaded the sample app for Ruby on Rails which uses the hubspot-ruby-client library.  
The token request keeps failing with

“URL using bad/illegal format or missing URL”

I am able to successfully complete the token request using Postman or `curl` on command line.  
I also succeed in using NET/HTTP library in ruby from the console.  
I tried debugging Typhoeus call for the past day or so, but I’m unsuccessful.

If someone from the Dev team can contact me I would appreciate it.

We are working with a common customer to achieve integration which will be valuable to other common customers in the future.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 23, 2023, 4:58pm UTC](https://community.hubspot.com/t/using-oauth-and-ruby-client-library-not-working/73385/2 "2023-01-23T16:58:52Z")

</div>

Hey, @RRanauro 👋 I’d start by reaching out here [GitHub - HubSpot/hubspot-api-ruby: HubSpot API Ruby Client Libraries for V3 version of the API · GitHub](https://github.com/HubSpot/hubspot-api-ruby) The devs that work on these libraries aren’t typically in the active in the community as this community is primarily peer-to-peer support.

Best,

Jaycee
