Open damienrobson-sage opened 1 year ago
Would love to hear if you got any feedback on this @damienrobson-sage. I have the same issue only intermittently when running in a Github workflow with Postman CLI. And again, since it's intermittent and there are no logs I can't reproduce it :(
Run echo "result=1" >> $GITHUB_OUTPUT
Error: could not load environment
Unexpected token '<' at 1:1
<html>
^
We've encountered this for quite some months using the postman cli. It's transitory and no other information to help debug it even in verbose mode (perhaps a trace id or similar would be useful)
@jcopperman unfortunately, no. It eventually went away of it's own volition and hasn't been seen since. Quite frustrating that there's been zero acknowledgement from the devs on this, too. I would close the issue but I think enough people keep coming a cropper with it that it should remain open and make as much noise as possible until it gets noticed
Facing the same issue issue only intermittently when running in a Github workflow
Same. Once or twice a day, on various different test runs in GitHub actions, we see:
$ newman run https://api.getpostman.com/collections/***?apikey=*** --otheroptions
error: could not load environment
Unexpected token '<' at 1:1
<html>
^
What this looks like is that the api.getpostman.com/collections
endpoint has intermittent issues, there is no retry in the code that gets from it, and the end result is that our tests are flakey.
However we don't see more details of the response - the status code and response body would help.
newman -v
): 5.3.2newman run collection.js --environment config.json
When running locally (MacOS 13.4.1) the above command works fine. When I try and run it within a GitHub actions pipeline, the following error is shown:
I've checked all of the files on our end but I can't track down the error anywhere, therefore I'm assuming the error is somewhere internal to
newman
.