Skip to content

Failed to parse WebSocket message text #291

@MaeThird

Description

@MaeThird

Hi, I can subscribe rtds data by my own code but changed to official sdk version 0.4.4 it failed with

2026-03-18T06:49:48.088400Z  WARN polymarket_client_sdk::ws::connection: Failed to parse WebSocket message text={"message": "Invalid request body", "connectionId":"aaCp5fBrLPECFSQ=", "requestId":"aaCp8HYFLPEEQwg="} error=Internal: missing field `topic` at line 1 column 102

my calling code is like this

let client = polymarket_client_sdk::rtds::Client::default();
info!("{:?}", client.connection_state());
let stream = client
    .subscribe_chainlink_prices(symbol_clone)
    .context("Failed to subscribe Chainlink prices");
let stream = match stream {
    Ok(stream) => stream,
    Err(e) => {
        error!("subscribe_chainlink_prices {}", e);
        return;
    }
};

Am I using this wrong, or didn't you test the version before release?

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