Click here to Skip to main content
16,022,828 members

Comments by gsemerdz (Top 5 by date)

gsemerdz 18-Feb-24 11:48am View    
Unfortunately, everything is as you showed in your comment and the whitespace is still there..
gsemerdz 17-Feb-24 12:48pm View    
Tried that, yes it fixed the special characters issue, but still did not work. The error in the Terminal - "Not Found: /ws/chat_app/testUser's room/".

However, I have noticed something really weird, when I tried to access the URL that django runs on in my browser, I got the list of the URL patterns and the the WebSocket one looks really weird, any idea why? 'ws/ chat_app/<room_name>'. The whitespace between 'ws/' and 'chat_app'
gsemerdz 17-Feb-24 10:46am View    
The Django server runs only on HTTP, because if I try to run it on 'wss', the following error appears 'code 400, message Bad request version ('À\x13À')
You're accessing the development server over HTTPS, but it only supports HTTP.'. Anyways, I have changed the code in flutter to be passing the room name as you suggest, again I'm getting the not found error: ""GET /ws/chat_app/testUser's%20room/ HTTP/1.1" 404 4423". Then I tried with keeping the same code in django as the one in the actual question, but instead in Flutter, I have provided the 'room.uniqueID'. Again without success - '"GET /ws/chat_app/3wVCio/ HTTP/1.1" 404 4379'
gsemerdz 16-Feb-24 10:34am View    
"allowing all origin CORS in my project", I mean allowing it in my Django project, adding it in my Django settings.py
gsemerdz 16-Feb-24 9:17am View    
I just saw it as a solution in another thread for similar to my problem, however with or without the CORS configuration, the issue I have is the same