Build works locally but bitrise build fails for urllib3.exceptions.MaxRetryError: HTTPConnectionPool

#1

My bitrise build works locally but when I run on bitrise I get a

E           urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4723): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10e737710>: Failed to establish a new connection: [Errno 61] Connection refused'))
/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py:439: MaxRetryError
------------------------------ Captured log call -------------------------------
WARNING  urllib3.connectionpool:connectionpool.py:750 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10e737510>: Failed to establish a new connection: [Errno 61] Connection refused')': /wd/hub/session
WARNING  urllib3.connectionpool:connectionpool.py:750 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10e737990>: Failed to establish a new connection: [Errno 61] Connection refused')': /wd/hub/session
WARNING  urllib3.connectionpool:connectionpool.py:750 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10e79d090>: Failed to establish a new connection: [Errno 61] Connection refused')': /wd/hub/session
=========================== short test summary info ============================
FAILED test_account.py::LoginTests::test_signinout - urllib3.exceptions.MaxRe...
======================= 1 failed, 24 deselected in 1.43s =======================```

When using pytest and appium
0 Likes

#2

Well, if anyone has this problem, its because I ran appium and pytest in the same line, and appium needs a second to run before pytest begins.

0 Likes

closed #3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes