Skip to content

Catch (and retry?) websocket errors #2304

Description

@szechyjs

Which packages are you using?

stream_chat_flutter, stream_chat

On what platforms did you experience the issue?

iOS

What version are you using?

9.13.0

What happened?

I got some crash reports with the following. This is obviously caused by some mobile connection issue, however I would think that the client would handle this websocket error better like it does the api requests.

WebSocketChannelException: SocketException: Failed host lookup: 'chat.stream-io-api.com' (OS Error: nodename nor servname provided, or not known, errno = 8)

Steps to reproduce

Unknown

Supporting info to reproduce

I noticed that the default RetryPolicy for StreamChatClient always retries for StreamChatNetworkError however websockets don't seem to be included in this, should it?

Relevant log output

Flutter analyze output

Flutter doctor output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions