This repository was archived by the owner on Apr 29, 2022. It is now read-only.
This repository was archived by the owner on Apr 29, 2022. It is now read-only.
Incompatible with Werkzueg>=2.0 #81
Open
Description
I'm experiencing werkzeug.routing.WebsocketMismatch: 400 Bad Request
after the recent release of werkzueg
and flask
. I'm not really sure why this is, but the docs state:
you receive a
WebsocketMismatch
exception if the only match is a WebSocket rule but the bind is an HTTP request, or if the match is an HTTP rule but the bind is a WebSocket request.
Here's the traceback I'm observing:
Traceback (most recent call last):
File "/venv/lib/python3.9/site-packages/gevent/pywsgi.py", line 999, in handle_one_response
self.run_application()
File "/venv/lib/python3.9/site-packages/geventwebsocket/handler.py", line 75, in run_application
self.run_websocket()
File "/venv/lib/python3.9/site-packages/geventwebsocket/handler.py", line 52, in run_websocket
list(self.application(self.environ, lambda s, h, e=None: []))
File "/venv/lib/python3.9/site-packages/flask/app.py", line 2464, in __call__
return self.wsgi_app(environ, start_response)
File "/venv/lib/python3.9/site-packages/flask_sockets.py", line 40, in __call__
handler, values = adapter.match()
File "/venv/lib/python3.9/site-packages/werkzeug/routing.py", line 2026, in match
raise WebsocketMismatch()
Metadata
Metadata
Assignees
Labels
No labels