Giter Site home page Giter Site logo

**Exception: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))** happens 2 out of 5 times about rallyresttoolkitforpython HOT 4 OPEN

rdkworld avatar rdkworld commented on August 14, 2024
**Exception: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))** happens 2 out of 5 times

from rallyresttoolkitforpython.

Comments (4)

klehman-rally avatar klehman-rally commented on August 14, 2024

There is no known current issue with generalized dropping connections from Rally WSAPI requests.

Are you using an HTTP/HTTPS proxy server? Many times when there is an inability to connect, or experiencing dropped connections there is a network proxy in the mix. When did this behavior start? Does it only occur in specific time periods? What is the frequency of the operation? (Is your script run every day, or hour or minute?). Did the host that you normally run the script on get updated with any OS elements or Python packages? Are you able to run the script using a different set of credentials or targeting alternate workspace/project?

from rallyresttoolkitforpython.

rdkworld avatar rdkworld commented on August 14, 2024

Hi Kip,
Thank you for so much for taking your time to review issue I reported and sharing your thoughts. Yes, there is an HTTP/HTTPS proxy server and I am suspecting that as well. When I run the same from my machine (behind firewall, VPN connected), it works 100% of the time because outgoing connections are allowed. When I run the same from host - a windows server on network (also behind firewall & uses proxy), it works sometimes and sometimes it does not (If it didn't work 100% of time from host, then for sure there is some host/network issue).
With respect to other things,

  • Script runs once a day on weekdays, if it is fails, I manually run until it is successful.
  • I don't think OS got updated (or I may be unaware) because it was not working, I updated pyral to latest version (but again same result before and after update).
  • I can try running with diff set of credentials/workspace and see but not sure if that would be issue since I would expect a different kind of error related to credentials or workspace if that is the issue unless the generic connection error is always through.
  • I believe this intermittent issue has always been there. I used to just retry after 2-3 min and it used to work. Of late, it didn't work even after trying 5 times, I wait for few hours and try, again it is not consistent.

Thanks,
Raghu

from rallyresttoolkitforpython.

klehman-rally avatar klehman-rally commented on August 14, 2024

It sounds like proxy issues are the culprit rather that time-of-day, frequency, etc.
What HTTP/HTTPS proxy software/package is being used (and on what kind of platform)?
The testing I've done for releases since 2018 was limited to Squid proxy on Mac OSX and a Python hybrid on Linux (Ubuntu 18). Prior releases were run against a proxy on a Linux server (don't remember the distro/version and also don't know what proxy sw or version) and at times that used to have some failures when the proxy got into a bad state. The issue might be addressed by putting logic in pyral to retry some number of times when use of a proxy is detected, but I don't foresee doing that any time soon. Chasing down the proxy issues might be your better option.

from rallyresttoolkitforpython.

abuzafarhaqq avatar abuzafarhaqq commented on August 14, 2024

From Stackoverflow, check out the solution, and please, take some medicine before checking the solution. The problem occurs with the proxy and it's the problem of the urllib3 connectionpool.

from rallyresttoolkitforpython.

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.