我用appium跑安卓自动化的时候,频繁报错:self = <http.client.HTTPResponse object at 0x111ae3908>
def _read_status(self):
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
if len(line) > _MAXLINE:
raise LineTooLong("status line")
if self.debuglevel > 0:
print("reply:", repr(line))
if not line:
# Presumably, the server closed the connection before
# sending a valid response.
> raise RemoteDisconnected("Remote end closed connection without"
" response")
E urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
请问可以怎么解决
展开
作者回复: 你可以看下appium的log,比如启动的时候加个appium -g appium.log 把日志保存下来。日志有点大,你可能没法贴上来,可以加我的qq 1516491904,我给你看看。