# 'GET /' cannot be proxied to UiAutomator2 server

**URL:** <https://discuss.appium.io/t/get-cannot-be-proxied-to-uiautomator2-server/33358>\
**Category:** Issues/Bugs\
**Created:** [March 26, 2021, 7:25am UTC](https://discuss.appium.io/t/get-cannot-be-proxied-to-uiautomator2-server/33358 "2021-03-26T07:25:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekdms33429](https://discuss.appium.io/letter_avatar_proxy/v4/letter/e/e274bd/32.png) [@ekdms33429](https://discuss.appium.io/u/ekdms33429)\
**Post date:** [March 26, 2021, 7:25am UTC](https://discuss.appium.io/t/get-cannot-be-proxied-to-uiautomator2-server/33358/1 "2021-03-26T07:25:42Z")

</div>

Pycharm version: 2020.3.3  
Appium Desktop version: 1.20.2  
Node.js version: 12.8.1

Today, after running the code in Pycharm I clicked the button for refreshing source in Appium, what happens is that the app fails to perform any action.  
How to fix it? What could I do for it?

 ![image](https://discuss.appium.io/uploads/default/original/2X/8/82767e50bf320cbcc1328e1beea62e209e624ba7.png)

[debug] e[35m[MJSONWP (a565ff1b)]e[39m Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: ‘GET /’ cannot be proxied to UiAutomator2 server because the instrumentation process is not running (probably crashed). Check the server log and/or the logcat output for more details  
[debug] e[35m[MJSONWP (a565ff1b)]e[39m at UIA2Proxy.command (C:\Users\user\AppData\Local\Programs\Appium\resources\app\node\_modules\appium\node\_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:275:13)  
[debug] e[35m[MJSONWP (a565ff1b)]e[39m at runMicrotasks ()  
[debug] e[35m[MJSONWP (a565ff1b)]e[39m at processTicksAndRejections (internal/process/task\_queues.js:85:5)  
[info] e[35m[HTTP]e[39m e[37m\<-- GET /wd/hub/session/a565ff1b-9d06-43db-b760-905f6769f95c e[39me[31m500e[39m e[90m10 ms - 353e[39m  
[info] e[35m[HTTP]e[39m e[90me[39m[warn] e[35m[BaseDriver]e[39m Shutting down because we waited 60 seconds for a command  
[warn] e[35m[Appium]e[39m Closing session, cause was ‘New Command Timeout of 60 seconds expired. Try customizing the timeout using the ‘newCommandTimeout’ desired capability’  
[info] e[35m[Appium]e[39m Removing session ‘53f27f9c-f221-4f59-9bac-40ecab480b17’ from our master session list  
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 session  
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 server session  
[debug] e[35m[WD Proxy]e[39m Matched ‘/’ to command name ‘deleteSession’  
[debug] e[35m[WD Proxy]e[39m Proxying [DELETE /] to [DELETE [http://127.0.0.1:8201/wd/hub/session/9e57fcea-3ec0-46eb-8c8d-778edc7c1f38](http://127.0.0.1:8201/wd/hub/session/9e57fcea-3ec0-46eb-8c8d-778edc7c1f38)] with no body  
[debug] e[35m[WD Proxy]e[39m Got response with status 200: {“sessionId”:“9e57fcea-3ec0-46eb-8c8d-778edc7c1f38”,“value”:null}  
[debug] e[35m[ADB]e[39m Running ‘C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s R3CM70H0BAV shell am force-stop app.name’[debug] e[35m[Logcat]e[39m Stopping logcat capture  
[debug] e[35m[ADB]e[39m Removing forwarded port socket connection: 8201  
[debug] e[35m[ADB]e[39m Running ‘C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s R3CM70H0BAV forward --remove tcp:8201’[info] e[35m[UiAutomator2]e[39m Restoring hidden api policy to the device default configuration  
[debug] e[35m[ADB]e[39m Running ‘C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s R3CM70H0BAV shell ‘settings delete global hidden\_api\_policy\_pre\_p\_apps;settings delete global hidden\_api\_policy\_p\_apps;settings delete global hidden\_api\_policy’’[debug] e[35m[Instrumentation]e[39m .[debug] e[35m[Instrumentation]e[39m Time: 109.118  
[debug] e[35m[Instrumentation]e[39m  
[debug] e[35m[Instrumentation]e[39m OK (1 test)[debug] e[35m[Instrumentation]e[39m The process has exited with code 0

---

<div class="post-metadata">

**Author:** ![Ohad\_Behore](https://discuss.appium.io/user_avatar/discuss.appium.io/ohad_behore/32/9204_2.png) [@Ohad\_Behore](https://discuss.appium.io/u/Ohad_Behore)\
**Post date:** [September 19, 2021, 2:46pm UTC](https://discuss.appium.io/t/get-cannot-be-proxied-to-uiautomator2-server/33358/2 "2021-09-19T14:46:41Z")

</div>

Is this issue still open?  
I am also getting errors starting the simplest example in appium 1.21.0:

Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: ‘DELETE /’ cannot be proxied to UiAutomator2 server because the instrumentation process is not running (probably crashed). Check the server log and/or the logcat output for more details

[ADB] Running ‘/Users/Obehore/Library/Android/sdk/platform-tools/adb -P 5037 -s MWS0216817004401 shell am force-stop com.android.calculator2’

Here are my Desired Capabilities:

{  
“deviceName”: “MWS0216817004401”,  
“platformName”: “android”,  
“appPackage”: “com.android.calculator2”,  
“appActivity”: “.Calculator”,  
“noReset”: true  
}

I have not even tried running a code, just a simple example of running appium with the instrumentation of android calculator.
