macacajs / macaca-android

🤖 Macaca Android driver

Home Page:https://macacajs.github.io/guide/versioning.html

Repository from Github https://github.commacacajs/macaca-androidRepository from Github https://github.commacacajs/macaca-android

android在调用waitForElement()方法时,提示bad request

Nicolasyy opened this issue · comments

macaca相关依赖:

macaca-doctor version: 2.0.18

Node.js checklist:

node env: D:\nodejs\node.exe
node version: v8.11.3

Android checklist:

JAVA version is 1.8
JAVA_HOME is set to C:\Program Files\Java\jdk1.8.0_20
ANDROID_HOME is set to C:\Users\Administrator\AppData\Local\Android\android-sdk
Platforms is set to `C:\Users\Administrator\AppData\Local\Android\android-sdk\platforms\android-27

ADB tool is set to C:\Users\Administrator\AppData\Local\Android\android-sdk\platform-tools\adb.exe

GRADLE_HOME is set to D:\gradle-4.9

Installed driver list:

android: 2.1.0
location: D:\nodejs\node_global\node_modules\macaca-android

日志报错信息:

proxy.js:75:23 [master] pid:11132 BAD REQUEST: Syntax error. HTTP verb {}POST unhandled.
proxy.js:78:24 [master] pid:11132 Fail to parse body: SyntaxError: Unexpected token B in JSON at position 0
@xudafeng @SamuelZhaoY

This is the translated issue:


Android prompts bad request when calling waitForElement() method

Macaca related dependencies:

macaca-doctor version: 2.0.18

Node.js checklist:

node env: D:\nodejs\node.exe
node version: v8.11.3

Android checklist:

JAVA version is 1.8
JAVA_HOME is set to C:\Program Files\Java\jdk1.8.0_20
ANDROID_HOME is set to C:\Users\Administrator\AppData\Local\Android\android-sdk
Platforms is set to `C:\Users\Administrator\AppData\Local\Android\android-sdk\platforms\android-27

ADB tool is set to C:\Users\Administrator\AppData\Local\Android\android-sdk\platform-tools\adb.exe

GRADLE_HOME is set to D:\gradle-4.9

Installed driver list:

android: 2.1.0
location: D:\nodejs\node_global\node_modules\macaca-android

Log error message:

proxy.js:75:23 [master] pid:11132 BAD REQUEST: Syntax error. HTTP verb {}POST unhandled.
proxy.js:78:24 [master] pid:11132 Fail to parse body: SyntaxError: Unexpected token B in JSON at position 0