postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 841 forks source link

Response is not updated after every new request if seen in pretty mode #13260

Closed HarromPS closed 1 week ago

HarromPS commented 1 week ago

Is there an existing issue for this?

Describe the Issue

Hi,

I wanted to test some code for my app in vs code using the Postman extension, so I tested my API endpoint with payload and wanted a response. It worked fine, for the correct payload, and I was getting the proper response.

But when tested for the wrong payload, the response was not changed when I was in the pretty view, but the status code was changed to 500. This means everything was working fine, except the response was not updated for new requests.

Then I switched to raw mode, which works fine as it should.

Here

1) works fine for correct data correct

2) Incorrect data is used, the status code is 500, and still response is not refreshed wrong1

3) response updated when switched to raw mode wrong2

4) works fine if working in raw mode wrong3

I think this is a bug with pretty mode. Please look into this and correct me if I was wrong anywhere.

Steps To Reproduce

  1. Create an API endpoint in Nodejs (mine was in Nodejs) and see in pretty mode.
  2. First return a response with data and status 200.
  3. Then return an error with status 500.
  4. Do the steps 2 and 3 in raw mode again.

Screenshots or Videos

No response

Operating System

Linux

Postman Version

v1.4.1

Postman Platform

Postman VSCode Extension

User Account Type

Signed In User

Additional Context?

No response

indraneel-postman commented 1 week ago

Hi @HarromPS This issue is happening due to an internal change in VSCode from v1.95.1 onwards. There is already an issue for tracking this and we have raised a bug with Microsoft team as well. Refer to this comment for more info- https://github.com/postmanlabs/postman-app-support/issues/13230#issuecomment-2458788661