question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues with Protractor and `process.uncaughtException`

See original GitHub issue

Hi there,

this is not quite an issue, more of a discussion. Please let me know if there’s a more helpful venue for this

We’ve had some issues on Protractor about removing our usage of process.on('uncaughtException') because it clobbers the cucumber uncaughtExceptionErrorHandler.

This is a bit of a difficult issue because both projects expect to be the “end of the line”. This is similar with other frameworks like mocha. Unfortunately, there seems to be a disconnect with handling certain types of exceptions in cucumber that does not present itself in Mocha.

Is there a way we could work together to figure something out? Ideally both projects could play nicely without compromising the ability to safely recover from errors.

I’m happy to help and coordinate from the protractor side.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
NickTomlincommented, Sep 26, 2016

After doing some more investigation, this seems to be an issue with the way that protractor-cucumber-framework’s use of Cucumber.Cli handles rejections in promises. I’m not sure if this is actually due to Cucumber itself (since it handles this just fine).

I’m going to go ahead and close this for now and follow up with the protractor-cucumber-framework folks. I’ll re-open and ping you if this does turn out to be something that needs changes in cucumber core.

Thanks!

0reactions
lock[bot]commented, Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

uncaughtException after a Protractor run - Stack Overflow
After upgrading to Protractor 4.0.0 and adjusting the config because of the breaking changes, we finally have our tests launching. Now, the ...
Read more >
Protractor 4 uncaughtException stop process #56 - GitHub
With Protractor 4 handling of errors thrown by Expected Conditions and Chai assertions (and possibly anything else) seems to have changed.
Read more >
angular/protractor - Gitter
[10:48:32] E/launcher - "process.on('uncaughtException'" error, see launcher ... It appears something on Jenkins is causing this issue with protractor.
Read more >
Getting “Runtime.executionContextCreated has invalid ...
I am getting this below Error while i run my protractor. And below is the error as shown in my webstorm console. Can...
Read more >
protractor-cucumber-framework - npm
If your process abruptly stops with an exit code 199 then your steps most likely threw an uncaught exception. Protractor is capturing these ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found