Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS真机调用Java API connect ECONNREFUSED 127.0.0.1:8001 #951

Closed
sprintuu opened this issue Nov 11, 2019 · 6 comments
Closed

iOS真机调用Java API connect ECONNREFUSED 127.0.0.1:8001 #951

sprintuu opened this issue Nov 11, 2019 · 6 comments

Comments

@sprintuu
Copy link

使用macaca server --verbos成功启动服务,但是使用Java API启动手机是出现入如下端口连接错误,但是app能够正常启动,只是连接建立失败
image

@macaca-bot
Copy link

This is the translated issue:


iOS real machine to call Java API connect ECONNREFUSED 127.0.0.1:8001

Use macaca server --verbos service started successfully, but using Java API start your phone is connected to the port appear the following error, but the app can start normal, but connection fails
! [Image] (https://user-images.githubusercontent.com/31270751/68579142-6a274300-04ae-11ea-83aa-832e6930d7bb.png)

@paradite
Copy link
Collaborator

请参考 issue 模版提交一下环境信息和运行的脚本/命令。

@macaca-bot
Copy link

This is the translated issue comment: @paradite


Please refer to issue a template to submit information about the environment and run scripts / commands.

@BeForever
Copy link

macaca 版本2.2.0 macOS Mojave 10.14.6 xcode 10.3
看起来同样的错误,求解。首先macaca server启动 端口3456,然后app-inspector 启动 端口5678,之后启动自己的脚本, “platformName”, "udid","bundleId","app"等必要参数全部填写完毕,软件正常安装后,真机并不会打开软件执行脚本,而报错连接失败。相同配置在模拟器可以运行。

`>> proxy.js:63:22 [master] pid:17250 xctest client proxy error with: Error: read ECONNRESET

proxy.js:63:22 [master] pid:17250 xctest client proxy error with: Error: read ECONNRESET
xctest-client.js:309:14 [master] pid:17250 Fail to start xctest: Error: read ECONNRESET
xctest-client.js:322:14 [master] pid:17250 killing runnerProc pid: 19492
xctest-client.js:328:14 [master] pid:17250 killing iproxyProc pid: 19636
responseHandler.js:56:12 [master] pid:17250 Send Error Respone to Client: Error: read ECONNRESET
responseHandler.js:62:14 [master] pid:17250 Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:201:27)

Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:201:27)

xctest-client.js:272:14 [master] pid:17250 iproxy exit with code: null, signal: SIGKILL
xctest-client.js:242:16 [master] pid:17250 xctest client exit with code: null, signal: SIGKILL
proxy.js:68:22 [master] pid:17250 xctest client proxy received no data.
proxy.js:68:22 [master] pid:17250 xctest client proxy received no data.
proxy.js:68:22 [master] pid:17250 xctest client proxy received no data.
proxy.js:68:22 [master] pid:17250 xctest client proxy received no data.
proxy.js:68:22 [master] pid:17250 xctest client proxy received no data.
proxy.js:68:22 [master] pid:17250 xctest client proxy received no data.
proxy.js:68:22 [master] pid:17250 xctest client proxy received no data.
xctest-client.js:309:14 [master] pid:17250 Fail to start xctest: No data received from XCTestWD.
xctest-client.js:322:14 [master] pid:17250 killing runnerProc pid: 19718
xctest-client.js:328:14 [master] pid:17250 killing iproxyProc pid: 19863
responseHandler.js:56:12 [master] pid:17250 Send Error Respone to Client: No data received from XCTestWD.

InternalServerError: Internal Server Error
at Object.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/koa/lib/context.js:91:23)
at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:59:17)
at module.exports.throw ()
at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24)`

macaca 版本2.2.0 macOS Mojave 10.14.6 xcode 10.3

@macaca-bot
Copy link

This is the translated issue comment: @BeForever


macaca version 2.2.0 macOS Mojave 10.14.6 xcode 10.3
It looks the same mistakes solved. After the first macaca server enable port 3456, then app-inspector started port 5678, after starting his own script, "platformName", "udid", "bundleId", "app" and other necessary parameters all filled out, the software is properly installed, the real machine open the software and will not execute the script, and the error connection fails. The simulator can run in the same configuration.

`>> proxy.js: 63: 22 [master] pid: 17250 xctest client proxy error with: Error: read ECONNRESET

proxy.js: 63: 22 [master] pid: 17250 xctest client proxy error with: Error: read ECONNRESET
xctest-client.js: 309: 14 [master] pid: 17250 Fail to start xctest: Error: read ECONNRESET
xctest-client.js: 322: 14 [master] pid: 17250 killing runnerProc pid: 19492
xctest-client.js: 328: 14 [master] pid: 17250 killing iproxyProc pid: 19636
responseHandler.js: 56: 12 [master] pid: 17250 Send Error Respone to Client: Error: read ECONNRESET
responseHandler.js: 62: 14 [master] pid: 17250 Error: read ECONNRESET
    at TCP.onStreamRead (internal / stream_base_commons.js: 201: 27)

  Error: read ECONNRESET
      at TCP.onStreamRead (internal / stream_base_commons.js: 201: 27)

xctest-client.js: 272: 14 [master] pid: 17250 iproxy exit with code: null, signal: SIGKILL
xctest-client.js: 242: 16 [master] pid: 17250 xctest client exit with code: null, signal: SIGKILL
proxy.js: 68: 22 [master] pid: 17250 xctest client proxy received no data.
proxy.js: 68: 22 [master] pid: 17250 xctest client proxy received no data.
proxy.js: 68: 22 [master] pid: 17250 xctest client proxy received no data.
proxy.js: 68: 22 [master] pid: 17250 xctest client proxy received no data.
proxy.js: 68: 22 [master] pid: 17250 xctest client proxy received no data.
proxy.js: 68: 22 [master] pid: 17250 xctest client proxy received no data.
proxy.js: 68: 22 [master] pid: 17250 xctest client proxy received no data.
xctest-client.js: 309: 14 [master] pid: 17250 Fail to start xctest: No data received from XCTestWD.
xctest-client.js: 322: 14 [master] pid: 17250 killing runnerProc pid: 19718
xctest-client.js: 328: 14 [master] pid: 17250 killing iproxyProc pid: 19863
responseHandler.js: 56: 12 [master] pid: 17250 Send Error Respone to Client: No data received from XCTestWD.

  InternalServerError: Internal Server Error
      at Object.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/koa/lib/context.js:91:23)
      at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:59:17)
      at module.exports.throw ()
      at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24) `

macaca version 2.2.0 macOS Mojave 10.14.6 xcode 10.3

@xudafeng
Copy link
Member

xudafeng commented Jul 4, 2020

#929

@xudafeng xudafeng closed this as completed Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants