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.86k stars 841 forks source link

VSC Extension or Postman client duplicating headers #13191

Open hnewfern opened 1 month ago

hnewfern commented 1 month ago

Is there an existing issue for this?

Describe the Issue

When I modify my collection in VSC Extension, then open the collection in Postman client, "calculated when request is sent" headers are duplicated and breaking the request (400 Bad Request). It doesn't make a difference if I make sure Postman and VS Code are not running at the same time. Also, the headers are often being marked as auto-generated and deletion and disabling are blocked in this event. I can't determine if the problem is with the VS Code extension or the Postman Client because I can't export the collection from VS Code.

Steps To Reproduce

  1. Close Postman if running
  2. Open VS Code
  3. Modify any test script, leaving the headers unchanged and save
  4. Close VS Code
  5. Open Postman
  6. Review headers of modified test

Expected Behavior

Actual Behavior

Workarounds

Screenshots or Videos

2024-10-09_13-21-58 2024-10-09_13-43-12

Operating System

Windows

Postman Version

Postman=v11.16.0, VS Code Postman=v1.3.0

Postman Platform

Postman VSCode Extension

User Account Type

Signed In User

Additional Context?

No response