You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the client in offline mode, the application crashes when the server is stopped.
My understanding is the offline mode should allow local database operations without requiring an active connection to the sync server.
Steps to Reproduce
import{createClient}from"@libsql/client";asyncfunctionexample(){constconfig={url: process.env.URL??"file:local.db",syncUrl: "http://localhost:8084",offline: true,};constdb=createClient(config);awaitdb.execute("CREATE TABLE IF NOT EXISTS guest_book_entries (comment TEXT)");}example();
Stop the sync server while client is running.
Expected Behaviour
The client should operate in offline mode without a crash.
Description
When running the client in offline mode, the application crashes when the server is stopped.
My understanding is the offline mode should allow local database operations without requiring an active connection to the sync server.
Steps to Reproduce
Stop the sync server while client is running.
Expected Behaviour
The client should operate in offline mode without a crash.
Actual Behaviour
The application crashes with the following error:
Environment
@libsql/client
version:0.14.0
The text was updated successfully, but these errors were encountered: