Closed Bug 1940945 Opened 1 year ago Closed 11 months ago

Lots of garbage in browser log from "console.error: services.settings: Message: TypeError: NetworkError: Network request failed"

Categories

(Remote Protocol :: Agent, defect, P2)

defect
Points:
1

Tracking

(firefox136 fixed)

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

Details

(Whiteboard: [webdriver:m15])

Attachments

(1 file)

I've seen this for a while but forgot to file a bug about. Whenever I start Firefox with the RemoteAgent enabled I can see a lot of log spam like the following:

console.error: services.settings: 
  Message: TypeError: NetworkError: Network request failed
  Stack:
    fetch/</request.onerror@resource://services-settings/Utils.sys.mjs:238:26c

It's a regression but I do not know at the moment when it started. As it looks like it's coming from the remote settings and originates from:
https://searchfox.org/mozilla-central/rev/6d06ffc186ac356648f1feeadd52cc61b2ad6737/services/settings/Utils.sys.mjs#238

It's not clear for which kind of settings it actually fails so some additional debugging might be good to do.

Mathieu, is there actually a way to get rid of those console error logs by default? When WebDriver is enabled we set services.settings.server to data:,#remote-settings-dummy/v1 to prevent external network access but then all those entries start to get printed to the log.

Flags: needinfo?(mathieu)

Would setting the preference services.settings.loglevel to off in these test profiles work for you?

Flags: needinfo?(mathieu)

This works great! I didn't know that off is an option as well. I'll set it as recommended preference for the Remote Agent and Marionette.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Severity: -- → S3
Points: --- → 1
Priority: -- → P2
Whiteboard: [webdriver:m15]
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8fb3fa27708b [remote] Disable logging for remote settings to prevent unnecessary log spam in the console. r=webdriver-reviewers,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: