Online Training: Web test automation with CodeceptJS. Sign up now!

Report Portal throws error related to status code when using RP V5

What are you trying to achieve?

Trying to run tests and push output to Reportportal V5.

What do you get instead?

(node:35244) UnhandledPromiseRejectionWarning: Error: Request failed with status code 400: {"errorCode":4001,"message":"Incorrect Request. [Value is not allowed for field 'status'.] "}
    at /Users/****/***************/**********************************************/node_modules/reportportal-client/lib/rest.js:27:23
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)


  • CodeceptJS version: 2.3.5
  • NodeJS Version: 12.11.0
  • Operating System: MacOS Catalina 10.15
  • WebDriverIO: 5.15.2
  • Configuration file:


  • The issue does not affect the tests or test runtime
  • The issue caused is inside ReportPortal where the tests don’t know when they ended thus the test run duration is inaccurate and it forces the user to manually stop the test sessions inside reportportal Launches section.

@unreal2frag do you use @peterngtr ? I think it is not tested with RP v5 yet, or?

@paulb v5 was not born by the time I wrote that helper :stuck_out_tongue:


so @paulb I just had a chance to test my helper against v5. It works great! Also I updated something to make it better. More info could be seen in here :slight_smile: