-
Notifications
You must be signed in to change notification settings - Fork 164
Incompatible with Werkzueg>=2.0 #81
Comments
I think this may be a knock on effect of #80 |
Never mind. I think this is distinct. |
We are observing the following issue: heroku-python/flask-sockets#81
Had the same issue. Fixed it by forcing the flask version to 1.1.4. There was a Flask major release (2.0.0) just a few days ago. |
Yup that was my solution too. You should be able to do the more generic |
seems like it would help a lot of people to have a release of flask-sockets where its Flask dependency is constrained to |
I how that would play with |
By the way, it is distinct but technically
Very good question. I thought a lot about how to answer. Here's the short version. I could be wrong but I'm pretty sure it will work properly because the A perhaps more intuitive way to reach the same conclusion is that An example of the same problem and its solution can be seen in I think doing something similar here is probably the right thing, especially as it sounds there is a concern PR #82 might result in incoherent behavior when paired with
|
Thanks @atzannes this sounds well thought out to me. |
Let me know if I can help push the ball forward or if there's a rough expectation for when this will be done because right now flask-sockets is blocking me from upgrading Flask, Werkzeug, and (indirectly) Click. If this is going to take much longer, I'll just fork flask-sockets and use that, no worries. |
@atzannes Hi! Sorry for the delayed reply. This repository isn't actively monitored. I unfortunately don't have the time to maintain this (inherited) project, and transferring a repo/package has it's own set of risks. As such I would recommend forking - and I'm happy to link out to the fork from this repo before archiving it. I would recommend creating as a new repo (and not via the GitHub fork feature), so that it appears as a top level project and not a GH fork of this one (which breaks things like code search, even ignoring discoverability). Many thanks :-) |
I have forked this repository, as suggested, and after applying the patch got it working for me, but I'm a bit concerned about this project no longer being maintained. Is there a different project that can be recommended to provide WebSocket support that is currently maintained? All google gives me is flask-scoketio, which does not provide WebSocket support at all (as far as I can tell). |
Someone needs to create a fork and maintain it, then everyone can use that. This repository is going to be archived soon, since I don't have the bandwidth to maintain it (I don't use Flask regularly for a start). |
@atzannes @ibrewster - Are either of you planning to setup a top level project? |
TBH, I was planning to simply use this (with the patch applied) as-is until it stopped working due to some future upgrade, and then go looking for something else. Although libraries that provide web socket support for Flask do seem to be few and far between :-) |
@wasauce I thought about setting up a top level project, but I'm really not using Flask in my day to day and I went through the issues on this repo and I don't think I would have the bandwidth to get familiar enough with Flask to be able to address those issues. So, at least for now, I have also forked this repo and applied the patch (https://github.com/APrioriInvestments/flask-sockets) |
@atzannes @ibrewster thanks very much. If I end up going this route and using flask-sockets -- I'll follow-up and make a top level project. Still investigating and tinkering over here. |
@wasauce, if you find an alternative to this project for implementing web sockets in Flask it'd be great if you could post back here with your findings. I was unable to discover one myself when I was first looking. |
I have encountered the same issue, werkzeug.routing.WebsocketMismatch: 400 Bad Request. And the fix is as below commit. The fix has been confirmed at my end. https://github.com/avble/flask-sockets/commit/dd783513af0b1a0120112bdcd7de1b43342a646b |
For anyone looking for a replacement to this (deprecated) project, I would check out: |
I'm experiencing
werkzeug.routing.WebsocketMismatch: 400 Bad Request
after the recent release ofwerkzueg
andflask
. I'm not really sure why this is, but the docs state:Here's the traceback I'm observing:
The text was updated successfully, but these errors were encountered: