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

502 error in response - submitted order #98

Closed
aghamir opened this issue Aug 28, 2018 · 2 comments
Closed

502 error in response - submitted order #98

aghamir opened this issue Aug 28, 2018 · 2 comments

Comments

@aghamir
Copy link

aghamir commented Aug 28, 2018

Versions

OS:   Ubuntu
Python:   3
krakenex: 2.1.0

What are you trying to achieve?

I want to addOrder via krakenex. It returns 502 error in response. So I re-send request later.

What do you expect to happen?

I expect that when krakenex return the 502 error, order won't be added in kraken.

What happens instead?

I saw duplicated order in my kraken.

I saw #66, however, I don't understand how can I avoid this.

@veox
Copy link
Owner

veox commented Aug 28, 2018

Darn. This means the remote end is experiencing overloads again.

See this old(ish) PSA with an explanation.

On the upside, this may present an opportunity to finally implement retrying failed requests, without looking for a "flaky HTTP server" mock for tests first.


There are currently two implementations in the PR section that have been hanging there since the last time it was commonplace. (Note they're both against an earlier version of krakenex (v2.0.0, I believe), so both have merge conflicts.)

However, for 502 they would (should!..) return the same error as you're getting now - precisely for the reason that the behaviour can't be said to be deterministic, at least not without an arbitrarily long wait period (as described in the PSA).

@veox
Copy link
Owner

veox commented Feb 28, 2021

Closing as duplicate of issue #66.

@veox veox closed this as completed Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants