Karma: [karma-server]: UncaughtException

Created on 18 Jul 2019  路  5Comments  路  Source: karma-runner/karma

Actual behaviour

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

released

Most helpful comment

Try 鈥攍ogLevel=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
    }

All 5 comments

Try 鈥攍ogLevel=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
    }

this log should really be in production ;)

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?

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

Sure, send a Pull Request.

:tada: This issue has been resolved in version 5.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings