Giter Club home page Giter Club logo

Comments (7)

bs111 avatar bs111 commented on May 13, 2024
D:\WebSafe\AndroidTest\venv3\Lib\site-packages\airtest\core\android\static\adb\windows>adb version
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Installed as D:\WebSafe\AndroidTest\venv3\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe
C:\Users\xxx>adb version
Android Debug Bridge version 1.0.40
Version 4797878
Installed as C:\Users\borla\AppData\Local\Android\Sdk\platform-tools\adb.exe

我复制了c盘的40版本到d盘的目录下,还是不可以。

from poco.

bs111 avatar bs111 commented on May 13, 2024

Nexus 5 (Android 8.1也是显示了无法连接)

EED:\WebSafe\AndroidTest\venv3\lib\site-packages\pocounit\case.py:204: UserWarning: Fail to stop result emitter: "SiteSnapshot". You can report this error to the developers or just ignore it. Error message: 
"Traceback (most recent call last):
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\urllib3\connection.py", line 171, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\urllib3\util\connection.py", line 79, in create_connection
    raise err
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\urllib3\util\connection.py", line 69, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\urllib3\connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "d:\python36\Lib\http\client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "d:\python36\Lib\http\client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "d:\python36\Lib\http\client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "d:\python36\Lib\http\client.py", line 1026, in _send_output
    self.send(msg)
  File "d:\python36\Lib\http\client.py", line 964, in send
    self.connect()
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\urllib3\connection.py", line 196, in connect
    conn = self._new_conn()
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\urllib3\connection.py", line 180, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000001C26AC0E978>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\requests\adapters.py", line 445, in send
    timeout=timeout
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\urllib3\connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\urllib3\util\retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=14136): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001C26AC0E978>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\pocounit\case.py", line 200, in run
    emitter.stop()
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\pocounit\result\site_snapshot.py", line 32, in stop
    self.snapshot('caseEnd')
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\pocounit\result\site_snapshot.py", line 38, in snapshot
    self.snapshot_screen(site_id)
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\pocounit\result\site_snapshot.py", line 60, in snapshot_screen
    b64img, fmt = self.poco.snapshot()
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\poco\pocofw.py", line 418, in snapshot
    return self.agent.screen.getScreen(width)
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\poco\drivers\android\uiautomation.py", line 78, in getScreen
    b64img = self.screen.getScreen(width)
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\hrpc\object_proxy.py", line 88, in __call__
    return self._client__.evaluate(self.__call_no_evaluate__(remote_obj_cache, *args))
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\hrpc\client.py", line 64, in evaluate
    self.transport.send({'id': reqid, 'uri': obj_proxy._uri__, 'method': obj_proxy._invocation_path__})
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\hrpc\transport\http.py", line 19, in send
    r = requests.post(self.endpoint, data=json.dumps(req), headers={'Content-Type': 'application/json'})
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\requests\api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\requests\api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\requests\sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\requests\sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
  File "D:\WebSafe\AndroidTest\venv3\lib\site-packages\requests\adapters.py", line 513, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=14136): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001C26AC0E978>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。',))

from poco.

adolli avatar adolli commented on May 13, 2024

请换回1.0.39版的adb再试一下,另外看这个现象可能有以下3种原因

  1. 电脑中存在两种adb版本,初始化的时候因为版本不同自动重启了adb server,导致adb forward失效
  2. usb线质量不行,松动导致adb forward失效
  3. 手机权限太高,自动把后台PocoService杀掉了

from poco.

bs111 avatar bs111 commented on May 13, 2024

还是存在错误 都切换为39了
usb线也换过了

from poco.

bs111 avatar bs111 commented on May 13, 2024

3.手机权限太高,自动把后台PocoService杀掉了
这个 可以搜索什么样的关键字吗

from poco.

adolli avatar adolli commented on May 13, 2024

我看你的是nexus,手机权限这个一般在安全菜单或者开发者选项里面调一下。但是也不排除是OPM系统的问题,你有试过release版的系统吗?

from poco.

zuobian1234 avatar zuobian1234 commented on May 13, 2024

win 10 系统,连接的windows程序(unity打包成的pc版本),脚本执行完,游戏界面会弹出错误:
SocketException: 远程主机强迫关闭了一个现有的连接。
|| System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException ()
System.Net.Sockets.Socket.EndReceive (IAsyncResult asyncResult, System.Net.Sockets.SocketError& errorCode)
System.Net.Sockets.Socket.EndReceive (IAsyncResult result)
System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar)
Rethrow as IOException: EndRead failure
System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar)
TcpServer.AsyncTcpServer.HandleDatagramReceived (IAsyncResult ar) (at D:/ayemao/develop/project/client/Assets/Unity3D/TcpServer.cs:303)
UnityEngine.Debug:LogException(Exception)
TcpServer.AsyncTcpServer:HandleDatagramReceived(IAsyncResult) (at D:/ayemao/develop/project/client/Assets/Unity3D/TcpServer.cs:305)
System.Net.Sockets.Worker:Receive()

from poco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.