-
Notifications
You must be signed in to change notification settings - Fork 47
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
Bug: beta.8
might've introduced some weird authentication timeout crash bug
#287
Comments
I'm not sure exactly what's happening here, but I think it's some time out issue that happens after a certain amount of minutes, not sure exactly how long |
beta.9
or beta.8
might've introduced some weird authentication timeout crash bug
beta.9
or beta.8
might've introduced some weird authentication timeout crash bugbeta.8
might've introduced some weird authentication timeout crash bug
Both |
This appears to be an issue with the SDK doing pings on HTTP(s) protocol, when pings should only be used with the ws(s) protocol. Temporary workaround: use websockets protocol to connect to server instead of HTTP(s) |
this happens with websockets as well. |
Did you try |
This issue was present in beta.12 too. The authenticated session expires and you have to setup a DB connection afresh. This means one of two things
|
Have got the same problem as @ioannist :/ |
@reinhard-sanz have you tried updating your surreal to a later version like beta.20 and using websocket instead of http? -https://foo.com:8000
+wss://foo.com:8000
or
-http://foo.com:8000
+ws://foo.com:8000 |
@AlbertMarashi ok after switching to websocket it seems to work now :) Thx! |
Describe the bug
I think c063200 may have introduced some kind of timeout bug or authentication bug
This ends up crashing the app because it's not handling the error.
Steps to reproduce
I tested with local db version 5.3 and 1.4.2 in production, both were having these issues. Which makes me think it's SDK issue (I was previously running 0.11 and migrating to v1.0
However, downgrading to beta-7 appear to not have this issue
Expected behaviour
App should not crash, not exactly sure what is happening here
SurrealDB version
1.5.3 on production 1.4.2
SurrealDB.js version
1.0.0-beta.9
Contact Details
[email protected]
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: