Skip to content

Debugging WebSocket-upgrade-failed error #24

@atacan

Description

@atacan

I could not find why WS connection fails with a certain Api service, namely "wss://streaming.assemblyai.com/v3/ws". I could not trace what the actual error behind the 'WebSocket upgrade failed' error thrown from try await WSClient.WebSocketClient.connect.

I tried the connection with Starscream library and it works fine.

Here is the reproduction in a macOS app: https://github.com/atacan/DiscussionWSClientUpgradeFailed/

I'd appreciate it if you could take a look.

I think you don't even need API key, as I showed the logs in the Readme, with Starscream we receive the unauthorized error after the connection is established. swift-websocket client fails with or without API key.

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