Python Forum

Full Version: Getting Max retries exceeded with url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Are you using a user agent header when making the http request?
This is cause for refusal on some sites.