Skip to content

ERROR: "[WinError 10054]": An existing connection was forcibly closed by the remote host #992

@AshrafFarhan

Description

@AshrafFarhan

Hi team in Mobly automation, sometimes I am facing an issue "[WinError 10054]",
I am using: mobly version ->1.12.2

I am only using the (wired USB) ADB RPC function, not to validate automation. Any suggestions to fix or avoid this issue?

mobly.snippet.errors.Error: <AndroidDevice|<"adb id">> Encountered socket error "[WinError 10054] An existing connection was forcibly closed by the remote host" sending RPC message "{"id": 261, "method": "<function name>", "params": [<func argument>]}"
..\testEnv\lib\site-packages\mobly\controllers\android_device_lib\snippet_client_v2.py:469: in _client_receive
    return self._client.readline()
C:\Users\<username>\AppData\Local\Programs\Python\Python310\lib\socket.py:705: in readinto
    return self._sock.recv_into(b)
E   ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
..\testEnv\lib\site-packages\mobly\snippet\client_base.py:205: in rpc_call
    return self._rpc(name, *args, **kwargs)
..\testEnv\lib\site-packages\mobly\snippet\client_base.py:282: in _rpc
    response = self.send_rpc_request(request)
..\testEnv\lib\site-packages\mobly\controllers\android_device_lib\snippet_client_v2.py:434: in send_rpc_request
    self._client_send(request)
..\testEnv\lib\site-packages\mobly\controllers\android_device_lib\snippet_client_v2.py:454: in _client_send
    raise errors.Error(
E   mobly.snippet.errors.Error:  <AndroidDevice|<"adb id">> Encountered socket error "[WinError 10054] An existing connection was forcibly closed by the remote host" sending RPC message "{"id": 261, "method": "<function name>", "params": [<func argument>]}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions