Code Monkey home page Code Monkey logo

Comments (4)

slazarov avatar slazarov commented on June 7, 2024

Which methods have you overridden?
Perhaps you are missing try/except in your code?

from python-bittrex-websocket.

wixihatchi avatar wixihatchi commented on June 7, 2024

It looks like i just need to call enable_log() to show the errors.

It seems that few errors trigger the on_error() function. What types of errors is this for?

from python-bittrex-websocket.

slazarov avatar slazarov commented on June 7, 2024

Related to wrong signalr invoking, what errors are you getting?

from python-bittrex-websocket.

wixihatchi avatar wixihatchi commented on June 7, 2024

The only errors I get through on_error() is for disconnections.

[2019-01-30 08:23:36,125][ERROR] Exception = <class 'websocket._exceptions.WebSocketConnectionClosedException'>, Message = .

[2019-01-29 06:56:18,279][ERROR] Connection timeout after 10 seconds. Sending a reconnection signal.
[2019-01-29 06:57:48,579][ERROR]
Unhandled Exception = <class 'requests.exceptions.HTTPError'>, Message = <524 Server Error: Origin Time-out for url: https://socket.bittrex.com/signalr/negotiate?connectionData=%5B%7B%22name%22%3A+%22c2%22%7D%5D&clientProtocol=1.5>.
Auto-reconnection is disabled for unhandled exceptions.
Report to https://github.com/slazarov/python-bittrex-websocket.

These aren't a problem though. I think I have fixed my problem by enabling log.

It would be useful to have an on_close() that runs when auto-reconnection is disabled. That way I could restart the connection manually. Right now I am intercepting log messages to alert my app that the websocket is closed. Having on_close() would just be cleaner with less code.

from python-bittrex-websocket.

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.