Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

502 Bad Gateway #6

Open
lingtingSir opened this issue Jul 31, 2017 · 12 comments
Open

502 Bad Gateway #6

lingtingSir opened this issue Jul 31, 2017 · 12 comments

Comments

@lingtingSir
Copy link

运行wdaproxy出现这个错误
error: 502 Bad Gateway
2017/07/31 09:14:12 http: proxy error: EOF
[09:14:12] 502 GET /status ([) 2.56ms
[09:14:16] 200 GET / ([) 0.41ms
2017/07/31 09:14:17 http: proxy error: EOF
[09:14:17] 502 GET /status ([) 1.11ms
2017/07/31 09:14:19 http: proxy error: EOF
[09:14:19] 502 GET /status ([) 0.98ms

@codeskyblue
Copy link
Member

后台需要运行WDA服务才行

@lingtingSir
Copy link
Author

1.首先手机先开启WDA服务,在运行此时端口开启 8100 2.终端运行wdaproxy -p 8101 -u $UDID 3.使用iproxy 8101 8100,是这个顺序?明早看看

@codeskyblue
Copy link
Member

w da p ro x y会去调用iproxy 你需要不用第三条

@DoubleHYH
Copy link

DoubleHYH commented Aug 21, 2017

我也遇到了同样的问题,两个设备分别执行

wdaproxy -W ~/WebDriverAgent -p 8100 -u UUID1
wdaproxy -W ~/WebDriverAgent -p 8101 -u UUID2

之后一个设备运行正常,另一个设备502

@codeskyblue
Copy link
Member

仔细查查,应该是另一个WDA退出了

@DoubleHYH
Copy link

没找到原因,但是可以肯定的是另一个没有退出。现在换了个方式好了。

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=UUID1" test
wdaproxy -p 8100 -u UUID1
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=UUID2" test
wdaproxy -p 8101 -u UUID2

@codeskyblue
Copy link
Member

我回去查一下

@codeskyblue
Copy link
Member

看代码很正常

@DoubleHYH
Copy link

wdaproxy 可以打印详细的log吗?

@codeskyblue
Copy link
Member

加上 -d 参数

@linzhengtian
Copy link

在模拟器上运行,命令 wdaproxy -W ~/WebDriverAgent -p 8100 -u UUID,同样会返回502错误!

@mackxu
Copy link

mackxu commented Mar 13, 2019

需要检查下 指定的$UDID是不是手机的,一开始我设置的mac的,出现了502,后来改成iPhone的就好了.

建议 官方文档上能给出命令wdaproxy -p 8100 -u $UDID 执行后 终端的视图

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants