Open Tomperez98 opened 6 months ago
Same here, we did setup everything according to Turso docs, but the app stops working after some time (not sure after what period of time tho). Restart fixes the issue.
Same with me
same
Also have the same issue
same issue
Same issue here, this was not happening before :( Is the issue that the websocket needs to be "kept-alive"? Not sure what the best practices are for starting a keep-alive thread in sqlalchemy
Adding the following param pool_pre_ping
fixed it for me 🙂
create_engine(
url=f"...",
pool_pre_ping=True
)
From time to time my server is unable to connect to turso database due to this error:
sqlalchemy.exc.DatabaseError: (sqlite3.DatabaseError) HRANA_WEBSOCKET_ERROR: WebSocket was closed
This is the sqlalchemy engine configuration
dependencies