Articles
Help Articles
Solving Proxy issues on Appium remote session
Fix proxy issues when trying to work with remote agent on mobile devices
If you are experiencing an issue connecting to a remote machine via a proxy and running mobile tests that depend on Appium, and you get this error:
1
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
2
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:53685/wd/hub/status] with no body
3
[WD Proxy] Got response with status 407: <HTML><HEAD>
4
[WD Proxy] <TITLE>Access Denied</TITLE>
5
[WD Proxy] </HEAD>
6
[WD Proxy] <BODY>
7
[WD Proxy] <FONT face="Helvetica">
8
[WD Proxy] <big><strong></strong></big><BR>
9
[WD Proxy] </FONT>
10
[WD Proxy] <blockquote>
11
[WD Proxy] <TABLE border=0 cellPadding=1 width="80%">
12
[WD Proxy] <TR><TD>
13
[WD Proxy] <FONT face="Helvetica">
14
[WD Proxy] <big>Access Denied (authentication_failed)</big>
15
[WD Proxy] <BR>
16
[WD Proxy] <BR>
17
[WD Proxy] </FONT>
18
[WD Proxy] </TD></TR>
19
[WD Proxy] <TR><TD>
20
[WD Proxy] <FONT face="Helvetica">
21
[WD Proxy] Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified.
22
[WD Proxy] </FONT>
23
[WD Proxy] </TD></TR>
24
[WD Proxy] <TR><TD>
25
[WD Proxy] <FONT face="Helvetica">
26
[WD Proxy] This is typically caused by an incorrect username and/or password, but could also be caused by network problems.
27
[WD Proxy] </FONT>
28
[WD Proxy] </TD></TR>
29
[WD Proxy] <TR><TD>
30
[WD Proxy] <FONT face="Helvetica" SIZE=2>
31
[WD Proxy] <BR>
32
[WD Proxy]
33
[WD Proxy] </FONT>
34
[WD Proxy] </TD></TR>
35
[WD Proxy] </TABLE>
36
[WD Proxy] </blockquote>
37
[WD Proxy] </FONT>
38
[WD Proxy] </BODY></HTML>
39
[WD Proxy]
Copied!
You need to allow Appium a no proxy connection to localhost to communicate with the device. To do that, simply add no_proxy=localhost environment variable like this:
Windows
Mac / Linux
set no_proxy=localhost
export no_proxy=localhost
You can add it for the CLI session, or at the system level from the environment variables page on Windows/Mac.
Copy link