Skip to content

okhttp sse error #9243

@tianshaokai

Description

@tianshaokai

When creating an SSE connection in OkHttp, should we use EventSources.createFactory() or RealEventSource.

I created the SSE request using the RealEventSource API.

The following three issues are the ones I encounter most frequently. Are there any solutions to them

  1. Software caused connection abort
  2. java.io.IOException: Required SETTINGS preface not received
  3. java.io.IOException: exhausted all routes
  4. okhttp3.internal.http2.StreamResetException: stream was reset: INTERNAL_ERROR

okhttp : 4.9.2
okhttp sse : 4.9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in existing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions