Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received error "websocket: close 1013: Market data unavailable" #33

Open
payaaam opened this issue Oct 7, 2021 · 3 comments
Open

Received error "websocket: close 1013: Market data unavailable" #33

payaaam opened this issue Oct 7, 2021 · 3 comments

Comments

@payaaam
Copy link

payaaam commented Oct 7, 2021

Hi!
I received this error and the client was not able to recover? I sent out an email to Kraken support to understand this error code a bit more. Is the correct way to handle this documented somewhere? Happy to make the change myself, just trying to gather information.

websocket: close 1013: Market data unavailable

@payaaam
Copy link
Author

payaaam commented Oct 7, 2021

Just heard back from Kraken support and it appears the website was under maintenance

The error happened at 22:00 UTC.
https://status.kraken.com/incidents/x8xyn5rp29jf

@aopoltorzhicky
Copy link
Owner

I think it was some kind of Kraken downtime. 1013 is the error code that means "Try again later". You can handle it in code if you wish for. In case of the library it will be something like this:

_, msg, err := k.conn.ReadMessage()
if err != nil {
    if websocket.IsCloseError(err, websocket.CloseTryAgainLater) {
	    return err
    }
}

The best way is handle all possible websocket errors, but unfortunetely I don't have enough time to do it.

@RAIHERE
Copy link

RAIHERE commented Feb 26, 2023

`

Hi! I received this error and the client was not able to recover? I sent out an email to Kraken support to understand this error code a bit more. Is the correct way to handle this documented somewhere? Happy to make the change myself, just trying to gather information.

websocket: close 1013: Market data unavailable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants