Skip to content

Client already closed exception #256

Open
@gh-ranjanKiran

Description

@gh-ranjanKiran
Image

Hi,
The above exception occurs sometimes during

  1. Hot restart
  2. Multiple times calling disconnectAndClear and reopening connection with new auth token.

We use the same base url for both our

  1. Normal API calls
  2. Connecting to powersync instance

What we have noticed and this is not reproducible is that, sometimes when above issue occurs, our normal API calls also stop working and we receive a response of this type for all API calls until users logs out of the app.

HttpException: Connection closed while receiving data

As we are using Dio library for our API calls, we get this exception type in dio
DioExceptionType.unknown

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