Comments (2)
Sadly this exception came up again today on a thread running a few days - any thoughts @pavoni or should I just try and catch it, then restart the script?
WARNING:socketIO_client:[connection error] connection closed (Connection is already closed.)
WARNING:socketIO_client:www.your-loop.com:443/socket.io/1: [connection error] connection closed (Connection is already closed.)
Exception in thread LoopEnergy Event Thread:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/pyloopenergy-0.0.13-py2.7.egg/pyloopenergy/loop_energy.py", line 165, in _run_event_thread
LOG.debug('LoopEnergy thread poll')
File "/usr/local/lib/python2.7/dist-packages/socketIO_client-0.5.6-py2.7.egg/socketIO_client/__init__.py", line 215, in __exit__
self.disconnect()
File "/usr/local/lib/python2.7/dist-packages/socketIO_client-0.5.6-py2.7.egg/socketIO_client/__init__.py", line 294, in disconnect
self._transport.disconnect(path)
File "/usr/local/lib/python2.7/dist-packages/socketIO_client-0.5.6-py2.7.egg/socketIO_client/__init__.py", line 320, in _transport
socketIO_session = self._get_socketIO_session()
File "/usr/local/lib/python2.7/dist-packages/socketIO_client-0.5.6-py2.7.egg/socketIO_client/__init__.py", line 348, in _get_socketIO_session
self.is_secure, self._base_url, **self._kw)
File "/usr/local/lib/python2.7/dist-packages/socketIO_client-0.5.6-py2.7.egg/socketIO_client/__init__.py", line 522, in _get_socketIO_session
heartbeat_timeout=int(response_parts[1]),
ValueError: invalid literal for int() with base 10: '100%; background'
from pyloopenergy.
@Jbithell Is it possible you're running an old version?
Looking at the line number of the python trace - that code is now on line 166 rather than 165 (it was on line 165 in older versions).
The latest version of the library catches that ValueError
and reconnects - so would be surprised if that still goes wrong.
from pyloopenergy.
Related Issues (19)
- Loses connection after some period of days. HOT 1
- No handlers could be found HOT 2
- Exception in thread LoopEnergy Event Thread HOT 2
- SSL: CERTIFICATE_VERIFY_FAILED caused disconnect
- High/erroneous reads being received HOT 17
- Doesn't re-connect after failure
- Exception kills connection - requests.exceptions.TooManyRedirects: Exceeded 30 redirects
- Another exception to catch
- Unknown Exception HOT 6
- Exception in LoopEnergy Event Thread HOT 5
- TypeError: cafile, capath and cadata cannot be all omitted HOT 1
- Feature request: Expose the gas_used value directly HOT 2
- No handlers could be found for logger "socketio_client" HOT 4
- Exception in new socket code after some time HOT 3
- Memory / handle leak since uograde to Socket IO 2.0
- Simple subscription example - Not returning anything HOT 5
- division by zero for gas useage HOT 1
- Conversion value HOT 8
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 pyloopenergy.