R
Railway14mo ago
Felinto

Websockets not working

Websockets are not working and I configured my domain!
24 Replies
Percy
Percy14mo ago
Project ID: c79423da-fecd-4305-8daa-29c8774fa681
Felinto
FelintoOP14mo ago
c79423da-fecd-4305-8daa-29c8774fa681 wss://browserless.felintonetwork.com/
Brody
Brody14mo ago
can you be more specific when you say "not working"
Felinto
FelintoOP14mo ago
Yes, I can
Felinto
FelintoOP14mo ago
Online Websockets Tester - Debug Client Tool
Test and debug WebSocket servers online with PieSocket WebSocket client tool, supports local WebSocket servers.
Felinto
FelintoOP14mo ago
No description
Felinto
FelintoOP14mo ago
No description
Brody
Brody14mo ago
what status code does it fail with?
Felinto
FelintoOP14mo ago
Sorry, I don't know how to test it. I'm using the official railway template: https://railway.app/new/template/browserless I'm deploying a new browserless instance, just to make sure where the problem is.
Brody
Brody14mo ago
look in the network tab
Felinto
FelintoOP14mo ago
No description
Brody
Brody14mo ago
what status code did it fail with
Felinto
FelintoOP14mo ago
No description
Felinto
FelintoOP14mo ago
The status is only "finished"
Brody
Brody14mo ago
please read this https://developer.chrome.com/docs/devtools/network/ let me know when you have found the status code
Felinto
FelintoOP14mo ago
I'm trying to use another tool because chrome does not me show the status code as I sent the print Can't install the tool
Felinto
FelintoOP14mo ago
No description
Felinto
FelintoOP14mo ago
Sorry but I can't fing the status code either If you check the docs that you sent me, the "status" column is populated but in my case I just received "Finished"
Brody
Brody14mo ago
does browserless even have websockets?
Felinto
FelintoOP14mo ago
yes
Brody
Brody14mo ago
are you using the correct endpoint?
Felinto
FelintoOP14mo ago
Let me check The endpoint is correct. I made a little progress. I created a new browserless instance using the railway template and after some configuration I managed to make it work. I will investigate to find out the exact reason for the error and let you know here. For now, thanks.
Felinto
FelintoOP14mo ago
I found the problem. 1. https://github.com/railwayapp-templates/browserless/blob/main/Dockerfile#L1 You should use a specific version instead of "latest" 2. https://www.browserless.io/docs/docker#:~:text=Connection%20Timeout,-Connection%20timeout%20is&text=The%20value%20of%20which%20can,connections%20when%20not%20in%20use! Connection timeout should be set in miliseconds instead seconds. My bad. Thanks!
Docker Configuration – Browserless Docs
The headless browser platform that scales your automation.
GitHub
browserless/Dockerfile at main · railwayapp-templates/browserless
Deploy Browserless on Railway. Web browser automation built for everyone, and loved by developers. - railwayapp-templates/browserless
Brody
Brody14mo ago
a few millisecond timeout would definitely do it lol
Want results from more Discord servers?
Add your server