# Problem with Monitors not working

**URL:** <https://community.postman.com/t/problem-with-monitors-not-working/25906>\
**Category:** Help Hub\
**Tags:** monitors, automation, collections, oauth2\
**Created:** [July 19, 2021, 10:34pm UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906 "2021-07-19T22:34:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vicmu](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@vicmu](https://community.postman.com/u/vicmu)\
**Post date:** [July 19, 2021, 10:34pm UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906/1 "2021-07-19T22:34:42Z")

</div>

_My question_:

I am having issue with running my collection on the Monitors. It runs with no issues on the runner, but does not on the Monitors. It gives me error 401 Unauthorized only when I use the Monitors.

_Details (like screenshots)_:

 ![ss1](https://us1.discourse-cdn.com/getpostman/original/2X/c/c935ee567118f48dc8482dc199dc95cc3f8c2b13.png)  
 ![ss2](https://us1.discourse-cdn.com/getpostman/original/2X/d/d48620606dd1276523b3576d08ae3f7377f713c1.png)  
 ![ss3](https://us1.discourse-cdn.com/getpostman/original/2X/f/f39d654d1cf75d141263f8b60c24b1b91da7ac6d.png)

_How I found the problem_:  
I want to to automate the collection to be ran automatically every x amount of hours every day. I made sure my workflow is working with the runner. However, it is not with the Monitors  
_I’ve already tried_:

I use oAuth2.0 for the request that I am having issues with.  
The request has pre-requests and tests.  
The token is not expired.

---

<div class="post-metadata">

**Author:** ![clairefro](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/clairefro/32/9113_2.png) [@clairefro](https://community.postman.com/u/clairefro)\
**Post date:** [July 20, 2021, 11:13pm UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906/2 "2021-07-20T23:13:21Z")

</div>

Hi! Are there any clues in the Console Log tab?

> **[Viewing monitor results](https://learning.postman.com/docs/designing-and-developing-your-api/monitoring-your-api/viewing-monitor-results/#console-log)**

---

<div class="post-metadata">

**Author:** ![vicmu](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@vicmu](https://community.postman.com/u/vicmu)\
**Post date:** [July 21, 2021, 5:51pm UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906/3 "2021-07-21T17:51:59Z")

</div>

![errors](https://us1.discourse-cdn.com/getpostman/original/2X/7/7457aac0e56770f8b849a11c9b3d82534399f87a.png)

Those are the errors I am getting.

he website needs credentials to sign into. I was able to understand what is causing the problem, monitors are not using the headers and body. The token is in the header and the monitor is not putting the headers in the URL. That is what is causing the issue to happen. Any idea on how to solve it?

---

<div class="post-metadata">

**Author:** ![cruxto](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@cruxto](https://community.postman.com/u/cruxto)\
**Post date:** [July 22, 2021, 10:10am UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906/4 "2021-07-22T10:10:32Z")

</div>

I’m seeing a similar issue when running a monitor, I think for me it’s because I have my sensitive data as the current value in my environment variables and the monitor can’t access them.

Is there a best practice to expose that private data safely for monitors?

---

<div class="post-metadata">

**Author:** ![bhaumikb](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@bhaumikb](https://community.postman.com/u/bhaumikb)\
**Post date:** [September 29, 2021, 7:46am UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906/5 "2021-09-29T07:46:38Z")

</div>

Hi @vicmu i am also looking for solution of this issue,Do you have any update ?

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [September 29, 2021, 2:34pm UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906/6 "2021-09-29T14:34:05Z")

</div>

@cruxto@vicmu

If you trust Postman with your collections and tokens, you also need to trust the Monitor with your token. Otherwise, you need to use Newman and run this on your own infrastructure.

---

<div class="post-metadata">

**Author:** ![Mahazin](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@Mahazin](https://community.postman.com/u/Mahazin)\
**Post date:** [June 25, 2023, 8:57am UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906/7 "2023-06-25T08:57:22Z")

</div>

Hi, I have same problem at Postman monitoring, Do you have a solution if our authorization is with Grant Type: Authorization Code (with PKCE).  
we don`t use client secret, and we put it blank.  
I turn on Auto-refresh token and every API works great, but in monitor I get No response.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/9/f9dae9ad85fcda646633d778fd1062dd04579c22.jpeg)

---

<div class="post-metadata">

**Author:** ![arlem](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/arlem/32/3078_2.png) [@arlem](https://community.postman.com/u/arlem)\
**Post date:** [June 26, 2023, 10:46am UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906/8 "2023-06-26T10:46:27Z")

</div>

Hey @Mahazin , are your variables saved as initial value or current value? The monitor can only access the data stored as initial value.

---

<div class="post-metadata">

**Author:** ![Mahazin](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@Mahazin](https://community.postman.com/u/Mahazin)\
**Post date:** [June 26, 2023, 10:59am UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906/9 "2023-06-26T10:59:53Z")

</div>

Thank you for your response. I didn`t need and didn`t set variable for my API s. @arlemi

---

<div class="post-metadata">

**Author:** ![arlem](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/arlem/32/3078_2.png) [@arlem](https://community.postman.com/u/arlem)\
**Post date:** [June 26, 2023, 11:10am UTC](https://community.postman.com/t/problem-with-monitors-not-working/25906/10 "2023-06-26T11:10:20Z")

</div>

@Mahazin Can you open the Console Log tab in the Monitor run and see what it says?
