# Wrong postman response if not refreshing the webpage

**URL:** <https://community.postman.com/t/wrong-postman-response-if-not-refreshing-the-webpage/17260>\
**Category:** Help Hub\
**Created:** [October 30, 2020, 10:47am UTC](https://community.postman.com/t/wrong-postman-response-if-not-refreshing-the-webpage/17260 "2020-10-30T10:47:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoanngodiet](https://avatars.discourse-cdn.com/v4/letter/y/4da419/32.png) [@yoanngodiet](https://community.postman.com/u/yoanngodiet)\
**Post date:** [October 30, 2020, 10:47am UTC](https://community.postman.com/t/wrong-postman-response-if-not-refreshing-the-webpage/17260/1 "2020-10-30T10:47:56Z")

</div>

Hello! Newbie here, learning web dev with an online course.  
I am experiencing something odd with postman.

I am testing a very beginner script - testing if a user’s name and password match with my pseudo database (which is a simple js object).  
My code is the absolute same as teacher.  
My code works as expected only if i have refreshed the whole postman page. The teacher does not refresh anything each time and things work as expected.  
I sometimes have to refresh the page several time and the code will work after some tries ^^.

I am using postman agent, updated, and testing on my localhost.  
I am coding in vs code, my code is made ‘live’ using latest nodemon with npm start, latest LTS of node.  
I tried through chrome, also tried in incognito mode, fearing addons like ublock.

I really don’t understand what is happening.  
ideas?

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [October 30, 2020, 11:22am UTC](https://community.postman.com/t/wrong-postman-response-if-not-refreshing-the-webpage/17260/2 "2020-10-30T11:22:18Z")

</div>

Welcome to the community @yoanngodiet!

What happens when it fails? Are you getting an error code? Is Postman not sending the request?

Screenshots are always helpful.

---

<div class="post-metadata">

**Author:** ![yoanngodiet](https://avatars.discourse-cdn.com/v4/letter/y/4da419/32.png) [@yoanngodiet](https://community.postman.com/u/yoanngodiet)\
**Post date:** [October 30, 2020, 11:36am UTC](https://community.postman.com/t/wrong-postman-response-if-not-refreshing-the-webpage/17260/3 "2020-10-30T11:36:49Z")

</div>

thanks !  
No error code, nothing happens. Looks like postman does not send anything.

 ![postman](https://us1.discourse-cdn.com/getpostman/original/3X/a/1/a14a82402ddd5d49e9a4bd3abb01ba5df966a0bd.png)

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [October 30, 2020, 11:41am UTC](https://community.postman.com/t/wrong-postman-response-if-not-refreshing-the-webpage/17260/4 "2020-10-30T11:41:51Z")

</div>

I’d recommend opening the postman console (alt+ctrl+c) and seeing what is being sent when it doesn’t work.

By the look of your code, I’d expect it to only ever return a 400 or a 200 with the ‘Access Granted’ text. I don’t see how it could be anything else.

An alternative could be to use the postman app instead of doing it through the browser. Might be worth a shot.

---

<div class="post-metadata">

**Author:** ![yoanngodiet](https://avatars.discourse-cdn.com/v4/letter/y/4da419/32.png) [@yoanngodiet](https://community.postman.com/u/yoanngodiet)\
**Post date:** [October 30, 2020, 11:46am UTC](https://community.postman.com/t/wrong-postman-response-if-not-refreshing-the-webpage/17260/5 "2020-10-30T11:46:20Z")

</div>

Hahaha.  
Works as it should with the desktop app 🙂.  
Thanks for the help Allen !

But it feels like this bug should be investigated…
