Skip to content

HubConnection failed to start successfully due to 'Server timeout elapsed without receiving a message from the server' error #103

@officialismailshah

Description

@officialismailshah

HubConnection failed to start successfully because of error 'Server timeout elapsed without receiving a message from the server.'

This occurs when the client is trying to establish a connection with the SignalR server, but the server doesn't respond in time, causing the client to timeout and disconnect.

Logs
I/flutter (27056): FINER: 2025-01-02 12:29:40.824777: Selecting transport 'HttpTransportType.ServerSentEvents'.
I/flutter (27056): FINEST: 2025-01-02 12:29:40.831242: (SSE transport) Connecting
I/flutter (27056): FINER: 2025-01-02 12:29:40.838173: (SSE transport) connected to https://api.wappz.online/chatHub?id=00Un5q5Eb40JrGDsrqMWGw
I/flutter (27056): FINER: 2025-01-02 12:29:40.842983: The HttpConnection connected successfully.
I/flutter (27056): FINER: 2025-01-02 12:29:40.843633: Sending handshake request.
I/flutter (27056): FINEST: 2025-01-02 12:29:40.848666: (SSE transport) sending data.
I/flutter (27056): FINEST: 2025-01-02 12:29:40.870254: HTTP send: url 'https://api.wappz.online/chatHub?id=00Un5q5Eb40JrGDsrqMWGw', method: 'POST' content: '{"protocol":"json","version":1}�' content length = '32' headers: '{ content-type: application/json;charset=UTF-8 }, { X-Requested-With: FlutterHttpClient }'
I/flutter (27056): FINEST: 2025-01-02 12:29:41.413976: (SSE transport) request complete. Response status: 200.
I/flutter (27056): INFO: 2025-01-02 12:29:41.414832: Using HubProtocol 'json'.
I/flutter (27056): FINER: 2025-01-02 12:30:41.424272: HttpConnection.stopConnection(Unknown) called while in state ConnectionState.Disconnecting.
I/flutter (27056): SEVERE: 2025-01-02 12:30:41.425502: Connection disconnected with error 'Server timeout elapsed without receiving a message from the server.'.
I/flutter (27056): FINER: 2025-01-02 12:30:41.427793: HubConnection.connectionClosed(Server timeout elapsed without receiving a message from the server.) called while in state HubConnectionState.Connecting.
I/flutter (27056): FINER: 2025-01-02 12:30:41.429445: Hub handshake failed with error 'Server timeout elapsed without receiving a message from the server.' during start(). Stopping HubConnection.
I/flutter (27056): FINER: 2025-01-02 12:30:41.430845: Call to HttpConnection.stop(Exception: Server timeout elapsed without receiving a message from the server.) ignored because the connection is already in the disconnected state.
I/flutter (27056): FINER: 2025-01-02 12:30:41.435507: HubConnection failed to start successfully because of error 'Server timeout elapsed without receiving a message from the server.'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions