Skip to content

Websocket support very slow loading #3219

@leroyloren

Description

@leroyloren

Describe the bug
After adding websocket support, loading is very tedious and takes a very long time to loa

Version
v0.49.18

How did you install?

Docker

To Reproduce

Steps to reproduce the behavior:
normal opening and using changedetection

Expected behavior
loading speed as lower than version 0.49.18

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 137.0.7151.40

Additional context
Checking websites and sending notifications works fine, but the website interface is unusable.

^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/engineio/socket.py", line 92, in handle_get_request return getattr(self, '_upgrade_' + transport)(environ, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/engineio/socket.py", line 151, in _upgrade_websocket return ws(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/engineio/async_drivers/_websocket_wsgi.py", line 15, in __call__ ret = self.app(self) ^^^^^^^^^^^^^^ File "/usr/local/engineio/socket.py", line 180, in _websocket_handler ws.send(packet.Packet(packet.PONG, data='probe').encode()) File "/usr/local/engineio/async_drivers/_websocket_wsgi.py", line 28, in send raise OSError() OSError 172.18.0.1 - - [28/May/2025 07:31:44] "GET /socket.io/?EIO=4&transport=polling&t=PSLpItR&sid=ODkDVg6DZTRA8nlJAAAQ HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "POST /socket.io/?EIO=4&transport=polling&t=PSLpItj&sid=ODkDVg6DZTRA8nlJAAAQ HTTP/1.1" 200 - 2025-05-28 07:31:44.042 | INFO | changedetectionio.realtime.socket_server:handle_disconnect:237 - Socket.IO: Client disconnected 172.18.0.1 - - [28/May/2025 07:31:44] "POST /socket.io/?EIO=4&transport=polling&t=PSLpLHK&sid=ODkDVg6DZTRA8nlJAAAQ HTTP/1.1" 200 - 2025-05-28 07:31:44.061 | DEBUG | changedetectionio.model.Watch:history:199 - Reading watch history index for 8cdd6abb-5f38-4129-b4ee-a85f808e3f91 172.18.0.1 - - [28/May/2025 07:31:44] "GET / HTTP/1.1" 200 - 2025-05-28 07:31:44.117 | DEBUG | changedetectionio.model.Watch:history:199 - Reading watch history index for 8cdd6abb-5f38-4129-b4ee-a85f808e3f91 172.18.0.1 - - [28/May/2025 07:31:44] "GET / HTTP/1.1" 200 - The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO) 172.18.0.1 - - [28/May/2025 07:31:44] "GET /socket.io/ HTTP/1.1" 400 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET / HTTP/1.1" 302 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /login?next=/ HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/styles/pure-min.css HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/styles/styles.css?v=0.49.18 HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/js/csrf.js HTTP/1.1" 304 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/js/jquery-3.6.0.min.js HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/js/socket.io.min.js HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/js/timeago-init.js HTTP/1.1" 404 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/js/realtime.js HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/js/toggle-theme.js HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/images/google-chrome-icon.png HTTP/1.1" 304 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/js/socket.io.min.js.map HTTP/1.1" 404 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /socket.io/?EIO=4&transport=polling&t=PSLpU4J HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/favicons/apple-touch-icon.png HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /static/favicons/favicon-16x16.png HTTP/1.1" 200 - 2025-05-28 07:31:44.429 | DEBUG | changedetectionio.realtime.socket_server:handle_connect:228 - Socket.IO: Sent initial queue size 0 to new client 2025-05-28 07:31:44.429 | INFO | changedetectionio.realtime.socket_server:handle_connect:232 - Socket.IO: Client connected 172.18.0.1 - - [28/May/2025 07:31:44] "POST /socket.io/?EIO=4&transport=polling&t=PSLpU57&sid=Es6kD0Y2kb5ZskEUAAAS HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:31:44] "GET /socket.io/?EIO=4&transport=polling&t=PSLpU58&sid=Es6kD0Y2kb5ZskEUAAAS HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:32:30] "GET /socket.io/?EIO=4&transport=websocket&sid=Es6kD0Y2kb5ZskEUAAAS HTTP/1.1" 500 - Error on request: Traceback (most recent call last): File "/usr/local/engineio/async_drivers/_websocket_wsgi.py", line 26, in send return self.ws.send(message) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/simple_websocket/ws.py", line 78, in send raise ConnectionClosed(self.close_reason, self.close_message) simple_websocket.errors.ConnectionClosed: Connection closed: 1005 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/werkzeug/serving.py", line 370, in run_wsgi execute(self.server.app) File "/usr/local/werkzeug/serving.py", line 331, in execute application_iter = app(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/flask/app.py", line 2213, in __call__ return self.wsgi_app(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/flask_socketio/__init__.py", line 42, in __call__ return super().__call__(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/engineio/middleware.py", line 63, in __call__ return self.engineio_app.handle_request(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/socketio/server.py", line 434, in handle_request return self.eio.handle_request(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/engineio/server.py", line 286, in handle_request packets = socket.handle_get_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/engineio/socket.py", line 92, in handle_get_request return getattr(self, '_upgrade_' + transport)(environ, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/engineio/socket.py", line 151, in _upgrade_websocket return ws(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/engineio/async_drivers/_websocket_wsgi.py", line 15, in __call__ ret = self.app(self) ^^^^^^^^^^^^^^ File "/usr/local/engineio/socket.py", line 180, in _websocket_handler ws.send(packet.Packet(packet.PONG, data='probe').encode()) File "/usr/local/engineio/async_drivers/_websocket_wsgi.py", line 28, in send raise OSError() OSError 172.18.0.1 - - [28/May/2025 07:32:30] "GET /static/favicons/site.webmanifest HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:32:30] "GET /socket.io/?EIO=4&transport=polling&t=PSLpU5n&sid=Es6kD0Y2kb5ZskEUAAAS HTTP/1.1" 200 - 2025-05-28 07:32:30.038 | INFO | changedetectionio.realtime.socket_server:handle_disconnect:237 - Socket.IO: Client disconnected 172.18.0.1 - - [28/May/2025 07:32:30] "POST /socket.io/?EIO=4&transport=polling&t=PSLpfDL&sid=Es6kD0Y2kb5ZskEUAAAS HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:32:32] "GET /socket.io/?EIO=4&transport=polling&t=PSLpfiT HTTP/1.1" 200 - 172.18.0.1 - - [28/May/2025 07:32:57] "GET /socket.io/?EIO=4&transport=polling&t=PSLpfj3&sid=nwe6YHrMtdGEmTapAAAU HTTP/1.1" 200 - 2025-05-28 07:32:57.056 | DEBUG | changedetectionio.realtime.socket_server:handle_connect:228 - Socket.IO: Sent initial queue size 0 to new client 2025-05-28 07:32:57.056 | INFO | changedetectionio.realtime.socket_server:handle_connect:232 - Socket.IO: Client connected 172.18.0.1 - - [28/May/2025 07:32:57] "POST /socket.io/?EIO=4&transport=polling&t=PSLpfj2&sid=nwe6YHrMtdGEmTapAAAU HTTP/1.1" 200 -

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions