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.82k stars 837 forks source link

VS Code extension pre-script pm.sendRequest results are not being logged to console #13161

Open hnewfern opened 7 hours ago

hnewfern commented 7 hours ago

Is there an existing issue for this?

Describe the Issue

When executing pm.sendRequest via the VS Code extension, only console logs are displayed. The network, request headers, request body, response headers, and response body details of the pre-script call are not logged.

Steps To Reproduce

  1. Create a pre-script that includes pm.sendRequest
  2. Send request
  3. Review console

Expected result: Entry for the url called and all related information appears before the main request log. Actual result: The details of the pre-script call are not logged. Only console.log is seen in the console.

Screenshots or Videos

2024-09-27_13-09-25

Operating System

Windows

Postman Version

postman.postman-for-vscode: v1.3.0, VS Code: 1.93.1, Postman for Windows: v11.14.1

Postman Platform

Other

User Account Type

Signed In User

Additional Context?

No response