"there is a problem with the bridge"
jagjordi opened this issue · 10 comments
OS version: Fedora 37
Browser version: Firefox 108.0
Extension version: 0.3.1
Bridge version: 0.3.0
Description
When trying to cast the following message appears
Steps to reproduce
- Install extension and brige
- Set up the daemon
- Try to cast youtube
Expected behaviour
Casting works and available devices appears
Logs
Provide any applicable logs here. Info on where to find them is located here.
[desktop_polymer.js:9665:9](https://www.youtube.com/s/desktop/451d4225/jsbin/desktop_polymer.vflset/desktop_polymer.js)
Some cookies are misusing the recommended “SameSite“ attribute 102
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/s/desktop/451d4225/jsbin/webcomponents-sd.vflset/webcomponents-sd.js
Source Map URL: blaze-out/k8-opt/bin/third_party/javascript/polymer/v2/webcomponentsjs/webcomponents-sd.js.sourcemap
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/s/desktop/451d4225/jsbin/custom-elements-es5-adapter.vflset/custom-elements-es5-adapter.js
Source Map URL: blaze-out/k8-opt/bin/third_party/javascript/custom_elements/fast-shim.js.sourcemap
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/s/desktop/451d4225/jsbin/web-animations-next-lite.min.vflset/web-animations-next-lite.min.js
Source Map URL: web-animations-next-lite.min.js.map
MouseEvent.mozPressure is deprecated. Use PointerEvent.pressure instead. [desktop_polymer.js:1892:45](https://www.youtube.com/s/desktop/451d4225/jsbin/desktop_polymer.vflset/desktop_polymer.js)
Will-change memory consumption is too high. Budget limit is the document surface area multiplied by 3 (2441168 px). Occurrences of will-change over the budget will be ignored. [www.youtube.com](https://www.youtube.com/)
fx_cast [sdk] (Info): cast.initialize [cast_sender.js:1:687](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.002s] [yt.mdx.remote] LocalScreenService: Initializing with []
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.002s] [yt.mdx.remote] ScreenService: Updated manual screens: []
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.002s] [yt.mdx.remote] ScreenService: Initializing automatic screens: []
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.002s] [yt.mdx.remote] OnlineScreenService: Initialized with {}
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.002s] [yt.mdx.remote] cloudview: cloudview.createSingleton_: true
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.003s] [yt.mdx.remote] remote: Initializing: {"device":"Desktop","app":"youtube-desktop","loadCastApiSetupScript":true,"enableDialLoungeToken":false,"enableCastLoungeToken":false}
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.003s] [yt.mdx.remote] remote: -- with channel params: {"device":"REMOTE_CONTROL","id":"ea1e01ea-693e-4a72-872c-07c96db98512","name":"Desktop","app":"youtube-desktop","mdxVersion":3}
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.004s] [yt.mdx.remote] cloudview: clearCurrentReceiver
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.004s] [yt.mdx.remote] remote: Skipping connecting because no session screen found.
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.223s] [yt.mdx.remote] cloudview: setCastInstalled_ true
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): STUB :: cast.setCustomReceivers [cast_sender.js:1:687](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.233s] [yt.mdx.remote] cloudview: setApiReady_ true
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [0.234s] [yt.mdx.remote] Controller: Receiver availability updated: unavailable
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
The resource at “https://i.ytimg.com/generate_204” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. [www.youtube.com](https://www.youtube.com/)
fx_cast [sdk] (Info): (logMessage) [8.070s] [yt.mdx.remote] Controller: Receiver availability updated: available
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [10.220s] [yt.mdx.remote] Controller: Receiver availability updated: unavailable
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. [z7cUAtzL1u1d_2AGWF4wFgnTveRSMJLcB1xcawACHJQ.js line 2 > eval line 17 > eval line 1 > eval line 1 > eval:1:119](https://pagead2.googlesyndication.com/bg/z7cUAtzL1u1d_2AGWF4wFgnTveRSMJLcB1xcawACHJQ.js%20line%202%20%3E%20eval%20line%2017%20%3E%20eval%20line%201%20%3E%20eval%20line%201%20%3E%20eval)
fx_cast [sdk] (Info): (logMessage) [20.588s] [yt.mdx.remote] Controller: Receiver availability updated: available
[cast_sender.js:1:669](https://www.gstatic.com/cv/js/sender/v1/cast_sender.js)
fx_cast [sdk] (Info): (logMessage) [22.772s] [yt.mdx.remote] Controller: Receiver availability updated: unavailable
What's the bridge status reported on the options page? Are you sure the daemon is configured and running properly?
Are there any other logs in browser/extension consoles? I assume that's output from the web console for the YouTube page, but that's just the init logs for the YouTube app.
This is the browser console output:
``` TypeError: (destructured parameter) is undefined [Grammarly-bg.js:2:1615207](moz-extension://921edbb4-e498-451f-88c8-ca4ef5c6e309/src/js/Grammarly-bg.js) stderr output from native app fx_cast_bridge: *** WARNING *** The program 'fx_cast_bridge' uses the Apple Bonjour compatibility layer of Avahi. stderr output from native app fx_cast_bridge: *** WARNING *** Please fix your application to use the native API of Avahi! stderr output from native app fx_cast_bridge: *** WARNING *** For more information see stderr output from native app fx_cast_bridge: *** WARNING *** The program 'fx_cast_bridge' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. stderr output from native app fx_cast_bridge: *** WARNING *** Please fix your application to use the native API of Avahi! stderr output from native app fx_cast_bridge: *** WARNING *** For more information see Some cookies are misusing the recommended “SameSite“ attribute 6 stderr output from native app fx_cast_bridge: *** WARNING *** The program 'fx_cast_bridge' uses the Apple Bonjour compatibility layer of Avahi. stderr output from native app fx_cast_bridge: *** WARNING *** Please fix your application to use the native API of Avahi! stderr output from native app fx_cast_bridge: *** WARNING *** For more information see stderr output from native app fx_cast_bridge: *** WARNING *** The program 'fx_cast_bridge' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. stderr output from native app fx_cast_bridge: *** WARNING *** Please fix your application to use the native API of Avahi! stderr output from native app fx_cast_bridge: *** WARNING *** For more information see TypeError: (destructured parameter) is undefined [Grammarly-bg.js:2:1615207](moz-extension://921edbb4-e498-451f-88c8-ca4ef5c6e309/src/js/Grammarly-bg.js) TypeError: (destructured parameter) is undefined 4 [Grammarly-bg.js:2:1615207](moz-extension://921edbb4-e498-451f-88c8-ca4ef5c6e309/src/js/Grammarly-bg.js) Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). 2 chrome:503:24 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). chrome:62:22 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). 2 chrome:503:24 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). chrome:62:22 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). 2 chrome:503:24 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). chrome:62:22 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). 2 chrome:503:24 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). chrome:62:22 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). 2 chrome:503:24 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). chrome:62:22 TypeError: (destructured parameter) is undefined [Grammarly-bg.js:2:1615207](moz-extension://921edbb4-e498-451f-88c8-ca4ef5c6e309/src/js/Grammarly-bg.js) ```This is the extension logs:
```text fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) fx_cast_bridge disconnected: [background.js:1:36538](moz-extension://b6ff9864-38f8-47a5-a390-b7df6bce1813/background/background.js) ```I can see now that the bridge connection failed, and it says that the backup is not enabled. I will check why that is happening and report back!
The backup was disabled since I had reinstalled the extension, now I enabled it again and I see some new error messages:
stderr output from native app fx_cast_bridge: *** WARNING *** The program 'fx_cast_bridge' uses the Apple Bonjour compatibility layer of Avahi.
stderr output from native app fx_cast_bridge: *** WARNING *** Please fix your application to use the native API of Avahi!
stderr output from native app fx_cast_bridge: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
stderr output from native app fx_cast_bridge: *** WARNING *** The program 'fx_cast_bridge' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
stderr output from native app fx_cast_bridge: *** WARNING *** Please fix your application to use the native API of Avahi!
stderr output from native app fx_cast_bridge: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
stderr output from native app fx_cast_bridge: *** WARNING *** The program 'fx_cast_bridge' uses the Apple Bonjour compatibility layer of Avahi.
stderr output from native app fx_cast_bridge: *** WARNING *** Please fix your application to use the native API of Avahi!
stderr output from native app fx_cast_bridge: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
stderr output from native app fx_cast_bridge: *** WARNING *** The program 'fx_cast_bridge' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
stderr output from native app fx_cast_bridge: *** WARNING *** Please fix your application to use the native API of Avahi!
stderr output from native app fx_cast_bridge: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
stderr output from native app fx_cast_bridge: node:internal/process/promises:279
stderr output from native app fx_cast_bridge: triggerUncaughtException(err, true /* fromPromise */);
stderr output from native app fx_cast_bridge: ^
stderr output from native app fx_cast_bridge:
stderr output from native app fx_cast_bridge: Error: connect EHOSTUNREACH 192.168.1.104:8009
stderr output from native app fx_cast_bridge: at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
stderr output from native app fx_cast_bridge: errno: -113,
stderr output from native app fx_cast_bridge: code: 'EHOSTUNREACH',
stderr output from native app fx_cast_bridge: syscall: 'connect',
stderr output from native app fx_cast_bridge: address: '192.168.1.104',
stderr output from native app fx_cast_bridge: port: 8009
stderr output from native app fx_cast_bridge: }
Any idea on what is the cause?
Looks like some sort of network configuration issue. Is that address (192.168.1.104
) reachable if you ping it?
FWIW I saw the same behavior with this in the logs. However, turning on the backup daemon connection resolved the issue.
fx_cast (Info): init [background.js:1:31810](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast (Info): checking for bridge... [background.js:1:31810](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast (Info): ... bridge compatible! [background.js:1:31810](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast (Info): init (action) [background.js:1:31810](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast (Info): init (menus) [background.js:1:31810](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast (Info): init (whitelist) [background.js:1:31810](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast_bridge disconnected: <empty string> [background.js:1:36538](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast_bridge disconnected: <empty string> [background.js:1:36538](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast_bridge disconnected: <empty string> [background.js:1:36538](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
fx_cast (Error): Bridge connection failed and backup not enabled. [background.js:1:31987](moz-extension://ab38c5f5-2368-4f9f-94c8-af964b28f0b2/background/background.js)
I'm also having this issue. What is the "backup daemon" and how do I turn it on?
I'm also having this issue. What is the "backup daemon" and how do I turn it on?
@chandywerks I don't know how it's different but I found the setting in the Add-on preferences.
FWIW, I got this error and resolved it by disconnecting from my VPN while device discovery was running. After my TV was found, it works after reconnecting to the VPN.
I changed to backup, then saved, then un-selected it, and noticed the error message disappeared. So perhaps it just needed a configuration change. (This just mentioned for information, that's all.)