Git Product home page Git Product logo

Comments (3)

CorbinFoucart avatar CorbinFoucart commented on May 29, 2024 1

For those who encounter the same problem, I found the solutions in PRs #99 and #100 were insufficient to prevent the program from crashing. My approach was instead to wrap the price querying code in a shell script that restarts upon failure, which seems to work great although it doesn't solve the underlying problem at the krakenex level.

Closing. Thank you for the input!

from python3-krakenex.

veox avatar veox commented on May 29, 2024

Is this a problem on the kraken side?

More often than not. You can avoid a few 'Connection reset by peer' by sending less queries. However, during a DDoS or heavy load Kraken may choose to drop/reset the connection regardless.

It can also happen due to a flaky connection.

Does it require resetting / opening a new connection through krakenex and closing the current session?

See the approaches in PRs #99 and #100, as well as the issues linked there, for a three-year old (:disappointed:) discussion on this.

I never got to merging either approach into the package, since both solutions have issues, and are hard to test properly these days.

Github says either of those can still be merged into the code as-is.

Something else?

Be careful with retries:

https://www.reddit.com/r/krakenex/comments/778uvh/psa_http_error_502_does_not_mean_the_query_wont/

This is old, and Kraken has had an iteration on their production code, so the PSA may not apply verbatim - just linking as an example of "unexpected things can happen".

from python3-krakenex.

veox avatar veox commented on May 29, 2024

Marking as duplicate of issue #66, mainly because the solution seems to be the same. Ping back if I misunderstood.

from python3-krakenex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.