Skip to content

Data websocket error with paper trading. Error code = 1002 (protocol error) #379

Open
@Medham278

Description

@Medham278

Hi,
I keep getting the following error when running any strategy (the sample python files) in paper trading mode. It was working before. Recently there has been some update in the alpaca trade api and I feel that maybe causing this error. I would appreciate any help regarding figuring out the cause and resolution for this type of error. The error message is below -

2022-03-23 14:11:54,810 starting stock data websocket connection
2022-03-23 14:11:56,289 connected to: wss://stream.data.alpaca.markets/v2/iex
2022-03-23 14:11:56,802 data websocket error, restarting connection: code = 1002 (protocol error), reason = received header with unexpected rsv bits set: true:false:false

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