Brief
I’ve isolated a bug or problem with how a docker app can (not) use websockets. The error is probably being printed from nginx (according to my smart friend).
Example Error in LogStream:
('78.158.237.146', 48389) - "WebSocket /" 403
Reproduction Steps:
- Create a free/paid docker app
- Set the repo slug to
zackees/webtorrent-seeder-websocket-bug
- Check that logs, to see that the webtorrent seeder runs, you’ll see a printout for the
magnetURI
, which will always be this:magnet:?xt=urn:btih:94993a31534e1a8466230e27be4ab1a5767eb8b5&dn=beavis_and_butthead.mp4&tr=wss%3A%2F%2Fwebtorrent-tracker.onrender.com
- Once the upload is finished, a webtorrent seed will be started, which will signal to the tracker that it is ready to serve the video. The swarm will be notified and you can check whether you can now download video by clicking here.
- If everything works correctly then the beavis and butthead clip should load.
- To debug the stream (a bit more) try out the webtorrent file checker