libsql-experimental-python icon indicating copy to clipboard operation
libsql-experimental-python copied to clipboard

The stream has expired due to inactivity

Open kevinroleke opened this issue 1 year ago • 8 comments

ValueError: Hrana: `api error: `{"message":"The stream has expired due to inactivity","code":"STREAM_EXPIRED"}``

Keep getting this unrecoverable error in my application which sparsely runs SQL queries.

https://github.com/tursodatabase/libsql/issues/985 https://github.com/tursodatabase/go-libsql/issues/12

Same issue in other libraries, not fixed on python yet.

kevinroleke avatar Mar 12 '24 04:03 kevinroleke

I'm having the EXACT same issue

AmeerArsala avatar Mar 12 '24 07:03 AmeerArsala

My application is running SQL queries in large batches in order to avoid using up all the quota/getting rate limited and this is what happens

AmeerArsala avatar Mar 12 '24 07:03 AmeerArsala

+1

hieuht-htv avatar Mar 17 '24 16:03 hieuht-htv

My application is running SQL queries in large batches in order to avoid using up all the quota/getting rate limited and this is what happens

@AmeerArsala I am also facing the same issue. It seems turso db closes the connection automatically only after some seconds of inactivity.

anubhuti24 avatar Apr 12 '24 18:04 anubhuti24

+1

PrinceBaghel258025 avatar Aug 23 '24 09:08 PrinceBaghel258025

I am having the same. Database with millions of rows

jacklc avatar Nov 13 '24 21:11 jacklc

+1

otomist avatar Nov 17 '24 21:11 otomist

I changed the code to Rust and worked fine.

Fábio Magalhães Costa

we.digi.growth +55 (11) 99154-3310

@.***

wedigi.com.br https://www.wedigi.com.br/

Em dom., 17 de nov. de 2024 às 18:41, o_o @.***> escreveu:

+1

— Reply to this email directly, view it on GitHub https://github.com/tursodatabase/libsql-experimental-python/issues/41#issuecomment-2481606759, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARQGSW6WOCS5LTEUMKMC3T2BEEQFAVCNFSM6AAAAABERPNAYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBRGYYDMNZVHE . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

jacklc avatar Nov 17 '24 23:11 jacklc