rollbar.js: "Unknown error. There was no error message to display." with blank Telemetry log lines

We recently started getting hundreds of occurrences a day of a Rollbar error that has the title, “Unknown error. There was no error message to display.” and the following traceback:

Unknown error. There was no error message to display.
1
File "(unknown)" line (unknown) in [anonymous]

Looking into specific occurrences, the Telemetry data always contains one or more red error “Log” lines with a completely blank field on the right.

I was able to reproduce one of the occurrences, which was caused by this legacy code:

window.location.href = /sessions/new

The actual error displayed in the console in the browser was “Invalid regular expression flags” (with a jQuery backtrace), even though none of these details were included on the Rollbar side. Adding quotes around /sessions/new fixed that issue, but we are still getting hundreds of occurrences a day and have not been able to reproduce any errors in the browser.

What is causing this generic error message and blank Telemetry log lines? I have a support ticket open as well if engineers would like details on the specific Rollbar item (they requested I file a GitHub issue here).

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 20 (7 by maintainers)

Most upvoted comments

I don’t believe so. @shakiba Would you be able to take this one on so we can get a fix out?

This bug is scheduled to be worked on for the next release of rollbar.js. Sorry about this 😦

Probably the issue is related to the issue in zone.js https://github.com/angular/zone.js/issues/1108 - it is already fixed in the master but it is not yet released. They pass into Rollbar’s onerror handler the instance of ErrorEvent instead of arguments which usually passed by browsers (https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror). So as rollbar.js is not ready to process ErrorEvent object we have “Unknown error. There was no error message to display.”. Also @rokob already mentioned:

The message “Unknown error. There was no error message to display.” happens when an exception is thrown that does not conform to the normal javascript error spec.

@jrdioko @HugoHeneault @eyalkenig can you please check and confirm if you use zone.js? Also I believe you have parameter extraArgs in payload for rollbar log with value {isTrusted: true}. Can you check it also please?

@rivkahstandig3636 is this included in v2.4.0?