Websockets not working
Websockets are not working and I configured my domain!
24 Replies
Project ID:
c79423da-fecd-4305-8daa-29c8774fa681
c79423da-fecd-4305-8daa-29c8774fa681
wss://browserless.felintonetwork.com/
can you be more specific when you say "not working"
Yes, I can
Online Websockets Tester - Debug Client Tool
Test and debug WebSocket servers online with PieSocket WebSocket client tool, supports local WebSocket servers.
what status code does it fail with?
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.
look in the network tab
what status code did it fail with
The status is only "finished"
please read this https://developer.chrome.com/docs/devtools/network/
let me know when you have found the status code
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
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"
does browserless even have websockets?
yes
are you using the correct endpoint?
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.
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
a few millisecond timeout would definitely do it lol