Title: Appium-Python issue while connecting to emulater in android studio · Issue #840 · appium/python-client · GitHub
Open Graph Title: Appium-Python issue while connecting to emulater in android studio · Issue #840 · appium/python-client
X Title: Appium-Python issue while connecting to emulater in android studio · Issue #840 · appium/python-client
Description: The problem The problem i'm facing here is im getting the following error [**urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4723): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError(...
Open Graph Description: The problem The problem i'm facing here is im getting the following error [**urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4723): Max retries exceeded with url: /wd/hu...
X Description: The problem The problem i'm facing here is im getting the following error [**urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4723): Max retries exceeded with...
Opengraph URL: https://github.com/appium/python-client/issues/840
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Appium-Python issue while connecting to emulater in android studio","articleBody":"## The problem\r\n\r\nThe problem i'm facing here is im getting the following error [`**urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4723): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError('\u003curllib3.connection.HTTPConnection object at 0x7fd691cf0af0\u003e: Failed to establish a new connection: [Errno 111] Connection refused'))**`] while connecting appium python code to android emulater device\r\nBriefly describe the issue you are experiencing (or the feature you want to see added to Appium). Tell us what you were trying to do and what happened instead. Remember, this is _not_ a place to ask questions. For that, go to http://discuss.appium.io!\r\n\r\n\r\n## Environment\r\n- windows 11 OS\r\n- Pycharm Professional IDE\r\n- Emulator version Android 11 \r\n- Appium latest app from offical site\r\n\r\n \r\n\r\n## Link to Appium Logs\r\n\r\n\u003e Connected to pydev debugger (build 223.8617.48)\r\n\u003e Traceback (most recent call last):\r\n\u003e File \"/home/mohanraj/.cache/pypoetry/virtualenvs/mis-automation-L9yvBObc-py3.9/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\r\n\u003e conn = connection.create_connection(\r\n\u003e File \"/home/mohanraj/.cache/pypoetry/virtualenvs/mis-automation-L9yvBObc-py3.9/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\r\n\u003e raise err\r\n\u003e File \"/home/mohanraj/.cache/pypoetry/virtualenvs/mis-automation-L9yvBObc-py3.9/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\r\n\u003e sock.connect(sa)\r\n\u003e ConnectionRefusedError: [Errno 111] Connection refused\r\n\u003e \r\n\u003e During handling of the above exception, another exception occurred:\r\n\u003e \r\n\u003e Traceback (most recent call last):\r\n\u003e File \"/home/mohanraj/.cache/pypoetry/virtualenvs/mis-automation-L9yvBObc-py3.9/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\r\n\u003e httplib_response = self._make_request(\r\n\u003e File \"/home/mohanraj/.cache/pypoetry/virtualenvs/mis-automation-L9yvBObc-py3.9/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\r\n\u003e conn.request(method, url, **httplib_request_kw)\r\n\u003e File \"/home/mohanraj/.cache/pypoetry/virtualenvs/mis-automation-L9yvBObc-py3.9/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\r\n\u003e super(HTTPConnection, self).request(method, url, body=body, headers=headers)\r\n\u003e File \"/home/mohanraj/.pyenv/versions/3.9.16/lib/python3.9/http/client.py\", line 1285, in request\r\n\u003e self._send_request(method, url, body, headers, encode_chunked)\r\n\u003e File \"/home/mohanraj/.pyenv/versions/3.9.16/lib/python3.9/http/client.py\", line 1331, in _send_request\r\n\u003e self.endheaders(body, encode_chunked=encode_chunked)\r\n\u003e File \"/home/mohanraj/.pyenv/versions/3.9.16/lib/python3.9/http/client.py\", line 1280, in endheaders\r\n\u003e self._send_output(message_body, encode_chunked=encode_chunked)\r\n\u003e File \"/home/mohanraj/.pyenv/versions/3.9.16/lib/python3.9/http/client.py\", line 1040, in _send_output\r\n\u003e self.send(msg)\r\n\u003e File \"/home/mohanraj/.pyenv/versions/3.9.16/lib/python3.9/http/client.py\", line 980, in send\r\n\u003e self.connect()\r\n\u003e File \"/home/mohanraj/.cache/pypoetry/virtualenvs/mis-automation-L9yvBObc-py3.9/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\r\n\u003e conn = self._new_conn()\r\n\u003e File \"/home/mohanraj/.cache/pypoetry/virtualenvs/mis-automation-L9yvBObc-py3.9/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\r\n\u003e raise NewConnectionError(\r\n\u003e urllib3.exceptions.NewConnectionError: \u003curllib3.connection.HTTPConnection object at 0x7fd691cf0af0\u003e: Failed to establish a new connection: [Errno 111] Connection refused\r\n\u003e \r\n\u003e During handling of the above exception, another exception occurred:\r\n\u003e \r\n\u003e Traceback (most recent call last):\r\n\u003e File \"/home/mohanraj/.cache/pypoetry/virtualenvs/mis-automation-L9yvBObc-py3.9/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 787, in urlopen\r\n\u003e retries = retries.increment(\r\n\u003e File \"/home/mohanraj/.cache/pypoetry/virtualenvs/mis-automation-L9yvBObc-py3.9/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\r\n\u003e raise MaxRetryError(_pool, url, error or ResponseError(cause))\r\n\u003e urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4723): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError('\u003curllib3.connection.HTTPConnection object at 0x7fd691cf0af0\u003e: Failed to establish a new connection: [Errno 111] Connection refused'))\r\n\u003e python-BaseException\r\n\u003e \r\n\u003e Process finished with exit code 1\r\n\r\n\r\n## Code To reproduce issue\r\n`from time import sleep\r\n\r\nfrom appium import webdriver\r\nfrom appium.webdriver.common.appiumby import AppiumBy\r\n\r\ndesired_caps = {\r\n \"deviceName\": \"Pixel 4a API 30\",\r\n \"platformName\": \"Android\",\r\n \"udid\": \"emulator-5554\",\r\n \"version\": 11,\r\n \"app\": \"C:\\\\Users\\\\lenovo\\\\Downloads\\\\com.indigo.new.apk\"\r\n}\r\n\r\ndriver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)`\r\n","author":{"url":"https://github.com/mohanrajreese","@type":"Person","name":"mohanrajreese"},"datePublished":"2023-03-10T12:29:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/840/python-client/issues/840"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:35e5b57b-6208-ea49-72a8-05b3ab07b858 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B916:2E8FB4:8AF6A58:BD1F9A7:6A5E8819 |
| html-safe-nonce | e16fa2927d230c042df608944a086abd9225d0c959aee1170730268ca035f219 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTE2OjJFOEZCNDo4QUY2QTU4OkJEMUY5QTc6NkE1RTg4MTkiLCJ2aXNpdG9yX2lkIjoiMjQ0MjQxNjI3ODMzMzM3ODgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6a92ed4bf26d6960f76876888e9879b6b977258431280c29e0983db9fdb308fb |
| hovercard-subject-tag | issue:1618904038 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/appium/python-client/840/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f4a2f14f14098824bb4b3f8500372e3d5fc1217504706ef047cd50acb9eadb1/appium/python-client/issues/840 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f4a2f14f14098824bb4b3f8500372e3d5fc1217504706ef047cd50acb9eadb1/appium/python-client/issues/840 |
| og:image:alt | The problem The problem i'm facing here is im getting the following error [**urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4723): Max retries exceeded with url: /wd/hu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mohanrajreese |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0c30ec4bc4cc128be7eee7ef869507723a2ac9916267b7e0d370b3580a5e7ba |
| turbo-cache-control | no-preview |
| go-import | github.com/appium/python-client git https://github.com/appium/python-client.git |
| octolytics-dimension-user_id | 3221291 |
| octolytics-dimension-user_login | appium |
| octolytics-dimension-repository_id | 18525395 |
| octolytics-dimension-repository_nwo | appium/python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18525395 |
| octolytics-dimension-repository_network_root_nwo | appium/python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 68ef39d284f7f48d37e751bc9bc0a9a4166228d5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width