# "request url is empty" even though successful authentication

**URL:** <https://community.postman.com/t/request-url-is-empty-even-though-successful-authentication/24981>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [June 17, 2021, 8:11pm UTC](https://community.postman.com/t/request-url-is-empty-even-though-successful-authentication/24981 "2021-06-17T20:11:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wenindoubt](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/wenindoubt/32/8946_2.png) [@wenindoubt](https://community.postman.com/u/wenindoubt)\
**Post date:** [June 17, 2021, 8:11pm UTC](https://community.postman.com/t/request-url-is-empty-even-though-successful-authentication/24981/1 "2021-06-17T20:11:59Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_:  
I authenticate using OAuth 2.0 successfully **and** get redirected back to Postman.

In the console, I get an error: `request URL is empty`

I **do not** see the authorization code in the response for me to parse, **but** if I expand the error message and look in the **Request Body \> code** , my authorization code is there!

I am able to use the authorization code to successfully obtain an Access Token as well.

_Details (like screenshots)_:

 ![Screen Shot 2021-06-17 at 1.09.15 PM](https://us1.discourse-cdn.com/getpostman/original/3X/7/7/77b7d20a7e6c95b4d78594e4876ee5730de546cd.png)  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/e/4e15510f7b9de06d1a02ccd6a104504d9866eb2a.png)  
 ![Screen Shot 2021-06-17 at 1.02.32 PM](https://us1.discourse-cdn.com/getpostman/original/3X/e/8/e8e64114bd67b8aca685060174e63fce07131d58.png)

_How I found the problem_:

1. I set all of the values in the OAuth 2.0 form
2. I click **Get New Access Token**
3. I get redirected to my browser to accept
4. I get a successful authentication
5. I get the **Authorization code** in the request body of a console error (I also get the auth code in the URL after authenticating)

_I’ve already tried_:  
I’ve already tried to tweak some values here & there and did a lot of search online with no success.

---

<div class="post-metadata">

**Author:** ![robtown](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@robtown](https://community.postman.com/u/robtown)\
**Post date:** [December 19, 2023, 2:42pm UTC](https://community.postman.com/t/request-url-is-empty-even-though-successful-authentication/24981/2 "2023-12-19T14:42:36Z")

</div>

I know this is an old thread… but for anyone in 2023 running into this lightly documented issue (like me), what solved it was entering the token endpoint the “Access Token URL” field.

In my case I’m trying to access the salesforce API so I used these URL’s:  
Auth URL: [https://somethingsomething.my.salesforce.com/services/oauth2/authorize](https://somethingsomething.my.salesforce.com/services/oauth2/authorize)

and:  
Access Token URL: [https://somethingsomething.my.salesforce.com/services/oauth2/token](https://somethingsomething.my.salesforce.com/services/oauth2/token)

---

<div class="post-metadata">

**Author:** ![yalattas](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/yalattas/32/27552_2.png) [@yalattas](https://community.postman.com/u/yalattas)\
**Post date:** [February 23, 2024, 12:36am UTC](https://community.postman.com/t/request-url-is-empty-even-though-successful-authentication/24981/3 "2024-02-23T00:36:09Z")

</div>

I have the same issue with github OAuth2, the GET request going to Github is happening and when a user is authenticated and consent. POSTMAN is failing to do the POST of the callback URL.

Yet, I see location in response header of Github call from postman on the following endpoint “[Sign in to GitHub · GitHub](https://github.com/login/oauth/authorize)”

pointing to the right endpoint of callback

If I took this value manually and post a request manually. It return the token needed from Github. My issue on how can I tell postman to use this value to call back.

By the way, same endpoint is configured on Github OAuth app without the code parameter of course
