Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request failed with status code 400 , using the latest version 5.0.2 newman-reporter-agent-js-postman #57

Open
gregorygold opened this issue Jul 23, 2021 · 1 comment

Comments

@gregorygold
Copy link

newman run https://postman-echo.com/status/200
-r @reportportal/agent-js-postman
--reporter-@reportportal/agent-js-postman-debug=true
--reporter-@reportportal/agent-js-postman-endpoint=https://reportportal.xxx.com/api/v1
--reporter-@reportportal/agent-js-postman-token=xxxxxxxx-xxxxxxxx-xxxxxxxxxxx
--reporter-@reportportal/agent-js-postman-launch=superadmin_TEST_EXAMPLE
--reporter-@reportportal/agent-js-postman-project=lit-api
--reporter-@reportportal/agent-js-postman-description=TEST_LAUNCH
-x
Start launch sktwim4akrgtkbvj
Start test item sktwim4akrgtkc0o
Error start item sktwim4akrgtkc0o:
Error: Request failed with status code 400: {"errorCode":4001,"message":"Incorrect Request. [Field 'name' should not be null.] "}
at /usr/local/lib/node_modules/@reportportal/newman-reporter-agent-js-postman/node_modules/@reportportal/client-javascript/lib/rest.js:36:23
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400: {"errorCode":4001,"message":"Incorrect Request. [Field 'name' should not be null.] "}
at /usr/local/lib/node_modules/@reportportal/newman-reporter-agent-js-postman/node_modules/@reportportal/client-javascript/lib/rest.js:36:23
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400: {"errorCode":4001,"message":"Incorrect Request. [Field 'name' should not be null.] "}
at /usr/local/lib/node_modules/@reportportal/newman-reporter-agent-js-postman/node_modules/@reportportal/client-javascript/lib/rest.js:36:23
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400: {"errorCode":4001,"message":"Incorrect Request. [Field 'name' should not be null.] "}
at /usr/local/lib/node_modules/@reportportal/newman-reporter-agent-js-postman/node_modules/@reportportal/client-javascript/lib/rest.js:36:23
at processTicksAndRejections (node:internal/process/task_queues:96:5)

@AmsterGet
Copy link
Member

Hello @gregorygold !
It looks like the Report Portal was unable to find the test item name in the request. Are you sure it was provided?
It would be helpful if you could share more details on the structure of your tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants