Skip to content

The stream has expired due to inactivity STREAM_EXPIRED error #11

@Mortalife

Description

@Mortalife

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions