Appium appium 突然报错 [MJSONWP] Encountered internal error running command: UnknownError

luobs · 2019年01月22日 · 最后由 luobs 回复于 2019年01月23日 · 2296 次阅读

今天 appium 执行 iOS 用例突然报错,蛋疼,wda-test 正常,先 mark 下问题,有没有大神遇到过的?
appium 日志如下:

[JSONWP Proxy] Proxying [GET /wda/screen] to [GET http://localhost:8100/session/451C2C3C-EAC5-4D67-8D97-8057A857F08C/wda/screen] with no body
[JSONWP Proxy] Got response with status 200: "{\n  \"value\" : \"Unhandled endpoint: \\/session\\/451C2C3C-EAC5-4D67-8D97-8057A857F08C\\/wda\\/screen -- http:\\/\\/localhost:8100\\/ with parameters {\\n    wildcards =     (\\n        \\\"session\\/451C2C3C-EAC5-4D67-8D97-8057A857F08C\\/wda\\/screen\\\"\\n    );\\n}\",\n  \"sessionId\" : \"451C2C3C-EAC5-4D67-8D97-8057A857F08C\",\n  \"status\" : 1\n}"
[MJSONWP] Matched JSONWP error code 1 to UnknownError
[MJSONWP] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unhandled endpoint: /session/451C2C3C-EAC5-4D67-8D97-8057A857F08C/wda/screen -- http://localhost:8100/ with parameters {
[MJSONWP]     wildcards =     (
[MJSONWP]         "session/451C2C3C-EAC5-4D67-8D97-8057A857F08C/wda/screen"
[MJSONWP]     );
[MJSONWP] }
[MJSONWP]     at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10)
[MJSONWP]     at ProxyRequestError.getActualError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14)
[MJSONWP]     at JWProxy.command$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:236:19)
[MJSONWP]     at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[MJSONWP]     at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[MJSONWP]     at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[MJSONWP]     at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[MJSONWP]     at run (/Applications/Appium.app/Contents/Resources/app/webpack:/~/babel-polyfill/~/core-js/modules/es6.promise.js:75:1)
[MJSONWP]     at /Applications/Appium.app/Contents/Resources/app/webpack:/~/babel-polyfill/~/core-js/modules/es6.promise.js:92:1
[MJSONWP]     at flush (/Applications/Appium.app/Contents/Resources/app/webpack:/~/babel-polyfill/~/core-js/modules/_microtask.js:18:1)
[MJSONWP]     at process._tickCallback (internal/process/next_tick.js:61:11)
[HTTP] <-- GET /wd/hub/session/05bb02df-1826-4178-a698-28e10b580af8 500 94 ms - 394
[HTTP] 
共收到 2 条回复 时间 点赞

最近有没有更新 appium 或者 wda,建议用 appium 自带的。。github 直接下 wda 有可能出现 api 不匹配出错

John 回复

是的,GitHub 的有问题,最近没有更新,突然出现比较奇怪,重新装了 appium 后正常了。

思寒_seveniruby 关闭了讨论 01月23日 16:34
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册