unhandled rejection
At https://github.com/reportportal/client-javascript/blob/develop/lib/report-portal-client.js#L107, when called from https://github.com/reportportal/client-javascript/blob/develop/lib/report-portal-client.js#L518, a promise is created, which can be rejected either from https://github.com/reportportal/client-javascript/blob/develop/lib/report-portal-client.js#L538 or from https://github.com/reportportal/client-javascript/blob/develop/lib/report-portal-client.js#L543. When that happens, an unhandled promise rejection is raised, which terminates the process (in my case, nightwatch).
Hi @gabrielschulhof !
Are you using your own integration or agent-js-nightwatch?
As far as I understand you correctly, you are expecting to not trigger a rejection in case of an test item start failure.
This project is an SDK for developing custom integrations with test frameworks, so I assume that failure should occur and should be caught if necessary in the consumer code, as we need to provide some indication that a particular request has failed.
@AmsterGet you're right. We're not using client-javascript directly, but via agent-js-nightwatch. I'll make sure that all the promises created by client-javascript are accessible in agent-js-nightwatch, and, if so, there should be a bug in agent-js-nightwatch whererby it fails to attach a .catch() handler to one of the promises.
Hi @gabrielschulhof !
Thanks for the clarification.
Since agent-js-nightwatch is not actively maintained by us compared to other agents, fixing the issue by the core team may take time.
In the meantime, we welcome contributions and open to collaborate with potential maintainers from community :)