Skip to content
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

The stream has expired due to inactivity STREAM_EXPIRED error #11

Open
Mortalife opened this issue Jul 10, 2024 · 1 comment
Open

The stream has expired due to inactivity STREAM_EXPIRED error #11

Mortalife opened this issue Jul 10, 2024 · 1 comment

Comments

@Mortalife
Copy link

Mortalife commented Jul 10, 2024

As this is meant to be a drop in replacement for sqlite3 it would be great if it handled these stream errors without surfacing them to the application.

tursodatabase/libsql#985

cause: [ResponseError: select count(`t0`.`id`) as `count` from `admin_users` as `t0` limit 1 - The stream has expired due to inactivity] {
    code: 'STREAM_EXPIRED',
    proto: {
      message: 'The stream has expired due to inactivity',
      code: 'STREAM_EXPIRED'
    },
    level: '\x1B[31merror\x1B[39m',
    timestamp: '2024-07-10 19:41:08.194',
    expose: false,
    statusCode: 500,
    status: 500,
    [Symbol(level)]: 'error'
  }
}

Since I'm trying to get this working in an open source project with little opportunity of changing how connections are made, I cannot implement any of the suggested options inside the linked issue.

@Mortalife
Copy link
Author

I see this has also been surfaced in the knex repo (which funnily enough is what I'm passing this into)

libsql/knex-libsql#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant