Unexpected error "", closing connection #1939
-
Alert the user before leaving the page when there are unsaved changes trigger the error Unexpected error "", closing connectionHi, I am kinda new to web applications and trying to make a dropzone progress bar project that emits the progress status (post-processing of the data after upload that runs in python) after the upload finish.
packages versionWerkzeug==2.2.2 IssueEverything works normally if the user doesn't interrupt the whole process by unloading the page. The first events emit after the initial socket connect:
If the onbeforeunload event is triggered, the socket will stop there and not be able to emit to "queue_complete" event in the backend. It will trigger the error on HTML console: and the following is what I get from python terminal:
I've setup my socketio with everything in default and my socket connect setup in javascript:
My flask init:
Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is an issue with the Socket.IO JavaScript client library. See socketio/socket.io-client#1451. |
Beta Was this translation helpful? Give feedback.
This is an issue with the Socket.IO JavaScript client library. See socketio/socket.io-client#1451.