Flask socket io returning session invalid #1935
Replies: 3 comments 2 replies
-
I think you have to pay more attention.
Why don't you try uninstalling |
Beta Was this translation helpful? Give feedback.
-
I did that. Its a no-go. Still invalid session. Its a 400 error with strict-origin-when-cross-origin Referrer Policy |
Beta Was this translation helpful? Give feedback.
-
App 3791622 output: Invalid session AGym7K7ze5H-mYvwAAAK (further occurrences of this error will be logged with level INFO) Dev tools: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am making an app which incorporates chat. To naturally I used flask socket io. In development the chat worked , but when I put it in production, it stopped and gave me the error
http://rcampusbuddy.bumblr.in/socket.io/?EIO=4&transport=polling&t=ONnqHU8&sid=ZzGCvCBRFp5YotGFAAAQ
When I clicked this error, it says session invalid. According to some stackoverflow posts, it can happen due to multiple things like gevent eventlet. But I have not installed any one of these.
In html client side I have used:
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.5.4/socket.io.js" integrity="sha512-YeeA/Qxn5hYdkukScTCNNOhTrv1C2RubAGButJ1rmgQwZf/HdRaCGl+JAVkqsqaNRaYNHdheiuKKuPf9mDcqKg==" crossorigin="anonymous" referrerpolicy="no-referrer">
In python I have the following libraries installed:
How can I fix this error?
Beta Was this translation helpful? Give feedback.
All reactions