WebSocket error: connect ECONNREFUSED on Synology NAS #2016
Replies: 6 comments 6 replies
-
I tried your setting with Also, I suggest opening the port for the PLAYWRIGHT container and accessing the port with your browser, ensuring the container is running. See also: https://stackoverflow.com/a/67253741/20307768 OR instead, you can open "browser steps" and click play button. When I used your yml, it didn't work at first but after the "browser steps" thing worked. |
Beta Was this translation helpful? Give feedback.
-
maybe related to your |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response! Re the older version, do you mean I should use image: ghcr.io/dgtlmoon/changedirection.io to get the latest version instead? I'm unable to access the IP:port through my browser (although when I once had browserless/chrome installed manually [ie not through docker compose], I was able to access it). It's my first time making a custom network/subnet for containers, so I might be making a dumb mistake here though. I did come across that stack overflow page when I was trying to troubleshoot on my own & am afraid it might be related to https as everything's on http LAN at the moment (I don't think it's a firewall problem though, as it's off for testing at the moment), but dunno really. I'm very surprised to hear you say browser steps solved the problem: I tried that too but kept getting a pop up that says "'Response' object is not subscriptable". The log output of the container only has the following to add to that: "Exception when calling step operation goto_url 'Response' object is not subscriptable". I tried this both on a URL I wanted to track changes as well as the default URL for Hacker News that comes with the container. @dgtlmoon |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue but force recreating the container (not a plain restart) worked in my case:
|
Beta Was this translation helpful? Give feedback.
-
For me, hardcoding the IP address of the host system worked: I guess there is a more elegant way using the described network bridge solution, but this did just work for my simple use case. |
Beta Was this translation helpful? Give feedback.
-
Try this recipe https://github.com/dgtlmoon/changedetection.io/wiki/Synology-NAS-setup |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Can't seem to scrape page while using Playwright, although text/HTML (the default option) works fine. When I try to switch requests to use the Playwright webdriver, I get the above error (consequently, it never manages to grab a screenshot of the page): WebSocket error: connect ECONNREFUSED 172.31.0.3:3000
I've tried looking at the other help posts with the same error, but none were resolved (except one involving Selenium which didn't seem relevant to what's happening here).
I've also tried restarting the containers before posting this (which didn't work, obviously).
To Reproduce
This is the docker compose I used to build the project on the NAS using Container Manager:
Beta Was this translation helpful? Give feedback.
All reactions