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

[karma-server]: UncaughtException #3342

Closed
0xacdc opened this issue Jul 18, 2019 · 5 comments · Fixed by #3399
Closed

[karma-server]: UncaughtException #3342

0xacdc opened this issue Jul 18, 2019 · 5 comments · Fixed by #3399
Labels

Comments

@0xacdc
Copy link

0xacdc commented Jul 18, 2019

Actual behaviour

[compiler.karma-typescript]: Compiled 40 files in 2160 ms.
[preprocessor.coverage]: Processing *****
[preprocessor.coverage]: Processing *****
[karma-server]: UncaughtException
[launcher]: Disconnecting all browsers

Environment Details

Karma version 4.2.0
macOS 10.14.4

Steps to reproduce the behaviour

  1. karma start --browsers Firefox

How can I get more details on this exception ?
Thanks

@johnjbarton
Copy link
Contributor

Try —logLevel=DEBUG

If that fails

const reportError = (error) => {
      process.emit('infrastructure_error', error)
      disconnectBrowsers(1)
      this.log.error(error);  // Add this line in lib/server.js
    }

@0xacdc
Copy link
Author

0xacdc commented Jul 19, 2019

this log should really be in production ;)

@0xacdc 0xacdc closed this as completed Jul 19, 2019
@simonvizzini
Copy link

Hi @johnjbarton, I'm also getting an "UncaughtException" error with no additional information. logLevel debug did not provide more information. I had to add the log call in lib/server.js as you have described. Is there any way to have it log the error by default, without manually editing server.js?

@johnjbarton
Copy link
Contributor

Is there any way to have it log the error by default, without manually editing server.js?

Sure, send a Pull Request.

@karmarunnerbot
Copy link
Member

🎉 This issue has been resolved in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

4 participants