Open finalclass opened 7 months ago
Bug confirmed on SurrealDB v1.1.1 & SurrealDB.js v0.11.0 While having a Nuxt.js app running and connected to the database, everything works fine until you crash or close the database. After you open the DB again the Nuxt app is not able to connect so you need to restart the Nuxt server.
Reproduced using Deno 1.40.0 + Surrealdb v1.2.0 + surrealdb.js v0.11.0. The part about uncatchable errors is a major issue for me, and makes the driver unusable in my use case. It seems WebSockets in Deno are unstable and tend to lose connection at random. This bug prevents the connection from being reestablished, and crashes my program as I am unable to catch the errors and reconnect manually.
Describe the bug
When surrealdb dies the library does not try to reconnect and it's not throwing (catchable) error.
Steps to reproduce
new Surreal()
instance.This is the error:
Expected behaviour
The library either:
SurrealDB version
1.0.0+20230913.54aedcd for linux on x86_64
SurrealDB.js version
0.11.0
Contact Details
s@finalclass.net
Is there an existing issue for this?
Code of Conduct