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

how to handle gateway timeout (no message) #77

Closed
pingu2k4 opened this issue Mar 13, 2018 · 2 comments
Closed

how to handle gateway timeout (no message) #77

pingu2k4 opened this issue Mar 13, 2018 · 2 comments
Assignees
Labels

Comments

@pingu2k4
Copy link

Tried placing a sell order, after having been running my bot for quite a long time and placing a sell order failed with:

Message "[GatewayTimeout]: '[NO REASON]' - [NO MSG] [NO CODE"

Luckily, I saw it about 3 minutes after it happened :) But, what should I do to circumvent this? Is there something this wrapper could do or should I be looking at encase each rest call in a try catch, and handling this unknown error myself?

Its quite an annoying one - I believe I have seen this one in the past, and order has actually successfully been placed, however this time the order was not placed. So the lack of information returned is quite the problem.

@sonvister
Copy link
Owner

sonvister commented Mar 13, 2018

@pingu2k4, how to handle HTTP 504 is documented (#66).

@sonvister
Copy link
Owner

I will update BinanceUnknownStatusException to reiterate the following as the error message: "It is important to NOT treat this as a failure; the execution status is UNKNOWN and could have been a success."

sonvister added a commit that referenced this issue Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants