-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sanic.exceptions.InvalidUsage: Method OPTIONS not allowed for URL /socket.io/ #70
Comments
Yes, sanic needs an explicit declaration of the methods that are supported. Fix coming up soon. |
Thank you so much @miguelgrinberg. I'll wait your update. |
@3mp3ri0r the master branch of python-engineio now has the fix for sanic. Would you like to test it to confirm everything is working before I cut a new release? |
Of course I'll try it. Wait. |
Hi @miguelgrinberg, I've tried it and I got no problem with sanic invalid usage, but I got:
Why my frontend apps still uable to access python-socketio? I still get 405 Method not allowed. |
Did you install the master branch for python-engineio, direct from GitHub? This fix has not been officially released yet. |
Yes I'm using master branch from github by doing: Any idea? |
Okay, sorry about that. Could you remove the package and reinstall it again from master? I think I found the problem. |
Yay! You've solved the problem, @miguelgrinberg. Thanks. Anyway do you know why socketio transport don't upgraded from polling to websocket when connecting from other domain? |
I got a gotcha. When I call asyncserver with Client will upgrade to websocket from polling when Thanks for your help @miguelgrinberg and I'm wait it published to pypi. |
Is |
Yes. I think so. I just search it and some one recomend to do it, but now I know that it was incorrect. 😂 |
@3mp3ri0r release 2.1.1 is now in pypi. Enjoy! |
Hurray! 🎉🎊 |
Hi all. I got issue when try to connect javascript socketio-client to python-socketio with different server port due to socketio-client request with OPTIONS method like this:
I've read the engine.io and I got that it doesn't add OPTIONS method in route, only GET and POST. I don't know is it a bug or I'm the one who implement it in a wrong way. Please guide me to solve this issue. Thanks.
N.B. My app locaton is http://localhost:8081.
The text was updated successfully, but these errors were encountered: