question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Connection aborted.' errors with python 3.6.1

See original GitHub issue

hi guys, I’m seeing intermittent ‘Connection aborted.’ errors with python 3.6.1 . the line of code that causes this is pusher.trigger('private-oms', 'client-message', event)

ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’,))

This doesnt happen all the time, but at high rates of call… it happens pretty frequently.

Not sure, but possibly related to https://github.com/kennethreitz/requests/issues/3458

any idea of what’s happening ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pedromlsreiscommented, Aug 30, 2017

I was getting the same error running h2o-py locally, with Python 3.5 and the latest stable version of h2o.

I was using a for cycle to do the following:

[in] for i in range(1,10):
          h2o.init()
          h2o.remove_all()
          python code
          h2o.cluster().shutdown()
[out] **H2OConnectionError** [...]

So, I fixed it by changing the h2o.init()'s port everytime:

[in] for i in range(1,10):
          h2o.init(port=54320+i)
          h2o.remove_all()
          python code
          h2o.cluster().shutdown()

Hope I’ve helped. Pedro

0reactions
namnguyenbkcommented, Jul 6, 2020

hey guys, It still happens in pusher==2.1.4 (python 3.7). @callum-oakley do you have any idea? Or what is root cause?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 3.6.1 crashed after readline module installed
I've compiled and installed Python 3.6.1 from source code, and run sudo pip3 install readline to install the readline module.
Read more >
Built-in Exceptions — Python 3.11.1 documentation
A subclass of ConnectionError , raised when a connection attempt is aborted by the peer. Corresponds to errno ECONNABORTED . exception ConnectionRefusedError ...
Read more >
Troubleshooting — conda 22.11.1.post16+ce4e810c9 ...
SSL connection errors ... DistributionNotFound: conda==3.6.1-6-gb31b0d4-dirty. macOS error "ValueError unknown ... Unicode error after installing Python 2.
Read more >
urllib3.exceptions.protocolerror: ('connection aborted ...
As per urllib3.exceptions.ProtocolError: ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host')) this issue was ...
Read more >
Can't install SCT due to Network Error (workaround for Iran ...
I tried six times (to rule out connection problem) to install SCT but it ... Installing conda... rm -rf /home/user/sct_dev/python mkdir -p ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found