Python Forum
Getting Max retries exceeded with url
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Max retries exceeded with url
#1
I am running automation script using selenium with python. Automation framework is built using python unittest framework. When i run the test case i am getting below error.
raise MaxRetryError(_pool, url, error or ResponseError(cause))
MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=50537): Max retries exceeded with url: /session/06415b4f95ce571160370e4ed19b487f/screenshot (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10dea7f50>: Failed to establish a new connection: [Errno 61] Connection refused',))

I am using mongodb in docker which is in my localhost. it is used to push the results to mongo db.
Can you help in identifying the issue.
Reply
#2
Are you using a user agent header when making the http request?
This is cause for refusal on some sites.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020