# How to resolve error 401 Unauthorized in Postman

**URL:** <https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [November 2, 2020, 5:46pm UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318 "2020-11-02T17:46:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranavNathcorp](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pranavNathcorp](https://community.postman.com/u/pranavNathcorp)\
**Post date:** [November 2, 2020, 5:46pm UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318/1 "2020-11-02T17:46:35Z")

</div>

![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/1/0172658549a50142247b763e12b153cbfecae7e9.png)  
Why am I getting 401 error when I run in Runner and when I run the same script individually its working fine.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 2, 2020, 9:35pm UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318/2 "2020-11-02T21:35:37Z")

</div>

Hey @pranavNathcorp

Do the other requests use the same Authentication?

What is the response body for that 401 requests? Are there any pieces of information in the response, that could give you an idea about what’s happening?

---

<div class="post-metadata">

**Author:** ![pranavNathcorp](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pranavNathcorp](https://community.postman.com/u/pranavNathcorp)\
**Post date:** [November 3, 2020, 7:52am UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318/3 "2020-11-03T07:52:42Z")

</div>

Hello **@danny-dainton**

Yes, I am using the same Authentication for all of the APIs.  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/5/55a4f301616861d4d670c51c2769977a4b682e37.png)

Its showing request body Unavailable.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 3, 2020, 8:02am UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318/4 "2020-11-03T08:02:36Z")

</div>

What does the `response body` of the requests that return a `401` code say?

Is there any type of rate limit for those endpoints that block a certain amount of requests in quick succession?

---

<div class="post-metadata">

**Author:** ![pranavNathcorp](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pranavNathcorp](https://community.postman.com/u/pranavNathcorp)\
**Post date:** [November 3, 2020, 9:28am UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318/5 "2020-11-03T09:28:39Z")

</div>

**@danny-dainton**

![image](https://us1.discourse-cdn.com/getpostman/original/3X/8/6/86d6680f08b2069280256928703f1deb449fcac1.png)  
No , there is no rate limit.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 3, 2020, 9:33am UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318/6 "2020-11-03T09:33:56Z")

</div>

Can you enable the checkbox (The image shows the default unchecked state) in the run options, before you start the run, then check what’s returned?

![Screenshot 2020-11-03 at 09.34.15](https://us1.discourse-cdn.com/getpostman/original/3X/1/e/1e67b239e8c12d80c14667f7edfe5c1d878b9e07.png)

Are any of the individual requests in an unsaved state in the builder? Ensure that everything is saved before running the Collection.

---

<div class="post-metadata">

**Author:** ![pranavNathcorp](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pranavNathcorp](https://community.postman.com/u/pranavNathcorp)\
**Post date:** [November 3, 2020, 9:37am UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318/7 "2020-11-03T09:37:04Z")

</div>

Yes, Its enabled  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/8/9/89c9fb57c90bb3a86f44586e2d285b453fb5b7c2.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 3, 2020, 9:37am UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318/8 "2020-11-03T09:37:53Z")

</div>

No it isn’t, you need to check that `Save responses` box.

---

<div class="post-metadata">

**Author:** ![pranavNathcorp](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pranavNathcorp](https://community.postman.com/u/pranavNathcorp)\
**Post date:** [November 3, 2020, 9:41am UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318/9 "2020-11-03T09:41:14Z")

</div>

![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/4/f41b20fca315f71ab8219546921466f789a7e36c.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 3, 2020, 9:46am UTC](https://community.postman.com/t/how-to-resolve-error-401-unauthorized-in-postman/17318/11 "2020-11-03T09:46:47Z")

</div>

You need to expand on everything that you’re responding with here - An image without any context about what else you have done doesn’t really help here.

What is returned in the response one you run that collection again?

Did you check to see that all the requests in the collection are saved?

It’s super difficult to help resolve anything when you can’t see what’s happening in front of you. 😃
