You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install Awesome RSS in a brand new Firefox profile
Open the Browser Console (Ctrl+Shift+J)
Reload this page
Expected behavior
The browser console should have the same number of error messages as before.
Actual behavior
Despite the extension appearing to function perfectly well, multiple errors of the form "Error: Could not establish connection. Receiving end does not exist." are logged to the console, originating at line 139, column 2 of the extension's js/background.js.
This spurious clutter makes it more difficult for me to do my own development and debugging. (Especially when they're interleaved from other similar spurious messages from other extensions, so they can't be collapsed as shown in the screenshot.)
Screenshots and/or logs (see how to open the developer console in your browser)
The text was updated successfully, but these errors were encountered:
@ssokolow I'll look into the error that's reported in the console, but I kinda need to log errors for reporting issues and development. Do you have any suggestions on how to resolve this without causing me to lose access to this essential information?
I'm also curious of your reason for working in the browser console on a new profile with this particular add-on installed.
I'll look into the error that's reported in the console, but I kinda need to log errors for reporting issues and development. Do you have any suggestions on how to resolve this without causing me to lose access to this essential information?
Call .catch(error_callback) on the promise returned by browser.tabs.sendMessage and you should be able to override the default error-handling behaviour. (Relevant MDN page)
Here's my recommendation for messages which occur as part of normal operation:
Emit the caught error using console.log rather than the default console.error, so such a "normally expected error" can be filtered out easily using the browser console's filtering controls. (If you're familiar with other logging APIs, console.log() is equivalent to the DEBUG log level and Chrom .)
If you don't customize it entirely, at least prefix it with something like Awesome RSS: so it's easy to see which extension it's coming from. (I had to click the js/background.js and then identify the extension by figuring out what the displayed source code was doing.)
Hide the message behind a default-off "Enable debug logging" checkbox in your addon options page.
I'm also curious of your reason for working in the browser console on a new profile with this particular add-on installed.
I installed it in a fresh profile to verify that I had clean instructions for reproducing the problem and took the screenshot while I was at it.
Steps to reproduce
Expected behavior
The browser console should have the same number of error messages as before.
Actual behavior
Despite the extension appearing to function perfectly well, multiple errors of the form "Error: Could not establish connection. Receiving end does not exist." are logged to the console, originating at line 139, column 2 of the extension's
js/background.js
.This spurious clutter makes it more difficult for me to do my own development and debugging. (Especially when they're interleaved from other similar spurious messages from other extensions, so they can't be collapsed as shown in the screenshot.)
Screenshots and/or logs (see how to open the developer console in your browser)
The text was updated successfully, but these errors were encountered: