You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I've tried to search everywhere, but can't find any proof for this issue or is it the issue at all. Please confrim whether it's the issue or not.
Newman Version: 6.2.1
OS details: WIn11 x64, node 20.10.0
Are you using Newman as a library, or via the CLI?: library
Did you encounter this recently, or has this bug always been there: i think it's always been there
Expected behaviour: like desktop Postman to be able to use top level async\await
Command / script used to run Newman: -
Sample collection, and auxiliary files (minus the sensitive details): -
Screenshots (if applicable):
general line, no async\await
line with async\await
Steps to reproduce the problem:
Generate collection
Add any pre-request containing await Promise.resolve()
Run the collection
Check that async\await usage leads to pre-request error
The text was updated successfully, but these errors were encountered:
Based on the error, I assume you are trying to use await outside of an async function. Support for top-level await is not yet available on Newman. We are planning on releasing a major version with multiple improvements in the coming weeks, and this will be part of that. I'll update this thread once it is available.
Hello, I've tried to search everywhere, but can't find any proof for this issue or is it the issue at all. Please confrim whether it's the issue or not.
general line, no async\await
line with async\await
Steps to reproduce the problem:
The text was updated successfully, but these errors were encountered: