Git Product home page Git Product logo

Comments (3)

sderuiter avatar sderuiter commented on June 10, 2024

I'm having similar issues. After a day or so, sometimes the server resets the connection, but there doesn't seem to be a way to cleanly restore/retry the connection.

File "/root/.local/lib/python3.9/site-packages/websocket/_socket.py", line 81, in recv
    bytes_ = sock.recv(bufsize)
  File "/usr/local/lib/python3.9/ssl.py", line 1227, in recv
    return self.read(buflen)
  File "/usr/local/lib/python3.9/ssl.py", line 1102, in read
    return self._sslobj.read(len)
ConnectionResetError: [Errno 104] Connection reset by peer

Using the stock example from the README.

Any hints on how to try/except this or another fail safe method that keeps the connection alive?

from py-graphql-client.

AleMuzzi avatar AleMuzzi commented on June 10, 2024

I fixed it in pull request #37 , you can use my fork till is not merged https://github.com/AleMuzzi/py-graphql-client

from py-graphql-client.

ecthiender avatar ecthiender commented on June 10, 2024

Thanks for reporting. And thanks to @AleMuzzi for fixing it. It is now released in 0.1.2. Please upgrade your package to get the fixed version pip install py-graphql-client==0.1.2.

from py-graphql-client.

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.