-
Notifications
You must be signed in to change notification settings - Fork 51
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
unhandled rejection #194
Comments
Hi @gabrielschulhof ! |
@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 ! |
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).
The text was updated successfully, but these errors were encountered: