Skip to content

Stream failing. Cause: Websocket transport not available #340

@mrxz44

Description

@mrxz44

Hi, anyone having issues with stream? I've tried sample 'stream_ig.py' with Live account credentials and looks like there is something with websocket connection.

Creating new v2 session for user 'ex_data_user' at 'https://api.ig.com/gateway/deal'
POST '/session', resp 200
Starting connection with https://apd.marketdatasystems.com
2024-10-21 14:28:51.483802|INFO |lightstreamer.actions|MainThread|serverAddress changed: https://apd.marketdatasystems.com
2024-10-21 14:28:51.483839|INFO |lightstreamer.actions|MainThread|user changed: null
2024-10-21 14:28:51.483855|INFO |lightstreamer.actions|MainThread|password changed
2024-10-21 14:28:51.484009|INFO |lightstreamer.actions|MainThread|Connection requested: details: [serverAddress => https://apd.marketdatasystems.com, libVersion => python_client 2.1.0 build 20231219] options: [requestedMaxBandwidth => BWUnlimited, retryDelay => 4000, firstRetryMaxDelay => 100, sessionRecoveryTimeout => 15000, reverseHeartbeatInterval => 0, stalledTimeout => 2000, reconnectTimeout => 3000, keepaliveInterval => 0, pollingInterval => 0, idleTimeout => 19000, contentLength => 50000000, slowingEnabled => false, serverInstanceAddressIgnored => false, HTTPExtraHeadersOnSessionCreationOnly => false]
2024-10-21 14:28:51.484048|INFO |lightstreamer.session|MainThread|Status: CONNECTING
2024-10-21 14:28:51.484735|INFO |lightstreamer.actions|MainThread|Subscription requested: subId: 1 [mode => MERGE, items => [MARKET:CS.D.BITCOIN.CFD.IP,MARKET:CS.D.EURUSD.MINI.IP,MARKET:IX.D.SPTRD.IFMM.IP], fields => [UPDATE_TIME,BID,OFFER,CHANGE,MARKET_STATE,CHANGE_PCT,HIGH,LOW], requestedSnapshot => SnpYes]
2024-10-21 14:28:51.485194|INFO |lightstreamer.actions|MainThread|Subscription requested: subId: 2 [mode => MERGE, items => [ACCOUNT:AU4YF], fields => [FUNDS,MARGIN,AVAILABLE_TO_DEAL,PNL,EQUITY,EQUITY_USED], requestedSnapshot => SnpYes]
2024-10-21 14:28:51.485375|INFO |lightstreamer.actions|MainThread|Subscription requested: subId: 3 [mode => DISTINCT, items => [TRADE:AU4YF], fields => [CONFIRMS,OPU,WOU], requestedSnapshot => SnpYes]
----------------------HIT CR TO UNSUBSCRIBE AND DISCONNECT----------------------
2024-10-21 14:28:51.688173|WARN |lightstreamer.session|Thread-2 (_hx_local_0)|Websocket suspended
2024-10-21 14:28:51.688272|ERROR|lightstreamer.session|Thread-2 (_hx_local_0)|Retrying connection. Cause: Websocket transport not available

image

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