-
Notifications
You must be signed in to change notification settings - Fork 141
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
The method is not allowed for the requested URL. #2
Comments
You need to be logged in |
It's after logged in only |
I faced same issue, after I logged in |
Same, I logged in and tried to post a message. Received 405 (Method not allowed). Also noticed the socket.io polling update returns a 400 (Bad Request) |
Do you guys have the sockets properly configured? |
All I've done is git clone the repo, create virtualenv, run pip install -r requirements.txt and python main.py From there the site loaded with login page, I logged in and got the Home page then tried posting a message and received 405. |
Also when the server launches I get this message For reference running this on Pop!_OS 20.10 |
This actually fixed the issue In base.html I changed <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js"></script>to this <script src="https://cdn.socket.io/3.1.1/socket.io.min.js"></script>and restarted the server |
This worked for me, Thanks @justin-mathews |
Yes, this patch fixed the issue with the "unsupported version of the Socket.IO or Engine.IO Protocols". Thanks. |
@justin-mathews It worked for me :), thanks. |
This issue was probably due to version of socket-io |
I know I am late to the party but #3 should work 😁 |
Yeah , the pr was made after this issue only. Still Tim didn't approve till now |
@AyushSehrawat maybe it's because @techwithtim is a bit busy and can't check some of his old repos. |
Hi, I changed the script you mentioned as well but still get the same error! Is there anyone same as me? |
Well it worked for me and most of the other ! Maybe there might be some other issue |
Got the issue when running on replit |
Well , dunno about repl, maybe some repl issue , but it works fine for localhost.. |
may I know why, unable to send message, in doesn't appear on the chatbox |
Hi, that's due to the bad practice of not specifying the dependencies versions on the Lines 1 to 4 in 8467cf4
|
Thanks a million! I got that issue too, and now it's gone! Thanks! Someone should close this issue now. |
I think this issue should not be closed until specifying dependencies versions in |
The issue is that |
@ApacheT101 Did you modify anything other than that line? Assuming you didn't, try restarting the server, computer, etc. It generally works for me when stuff like that happens. |
I tried to restart the computer and server before and even reinstall every imports in another laptop to test the script (no modification except change ip address in env file) but the error codes still comes up. Could you try to execute script on your laptop? |
@ApacheT101 I just executed the code on my end. It works for me. |
Bro I still got the error please tell me what to do :( |
I'm having the same problem. I replaced the script tag as suggested:
I can Login successfully, but when I write a message and hit the "Send" button, nothing is sent and nothing appears on the chat. I didn't modify anything else except that script tag. |
Thank u so muchhhhh , God bless u |
When I type a message and click on send, it gives an error saying Method Not Allowed.
The text was updated successfully, but these errors were encountered: