Comments (3)
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.
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.
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)
- is py-graphql-client compatible with apollo-server-express? HOT 9
- How can I pass authentication header ? HOT 2
- Can you give an SSL example? HOT 3
- Websocket exception when subscribe HOT 2
- how to use subscriptions ? HOT 2
- Feedback: Multiple subscription callbacks in one thread HOT 4
- How are things with python3.5? HOT 2
- support for context manager or `with` statement
- Unable to import module HOT 1
- How to handle exception when the client lost connection . HOT 2
- Request to expose websocket ConnectionId HOT 1
- Subscription parameters wrapped in "headers" attribute HOT 1
- ImportError: cannot import name 'GraphQLClient' from partially initialized module 'graphql_client' (most likely due to a circular import)
- error subproto = headers.get("sec-websocket-protocol", None).lower() AttributeError: 'NoneType' object has no attribute 'lower' HOT 5
- Handling the data we receive.
- context manager bug HOT 3
- How to skip ssl certificate verification? HOT 1
- "cannot join current thread" when close() called on running client HOT 1
- stop_subscribe has threading issues/exceptions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-graphql-client.