-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Unable to create session through device farm getting AxiosError after setup is done #1433
Comments
Can you try below command and try again please ? appium plugin run device-farm reset |
Hi @erdncyz Tried this command appium plugin run device-farm reset, but getting same error [AppiumDriver@14d4] Command 'createSession' was not handled by the following behaviours or plugins, even though they were registered to handle it: ["default"]. The command was handled by these: ["device-farm"]. |
Did you open develeoper mode on your devices ? ı think that this issue deal with your devices or your devices connection. |
Developer Options are enabled and able to perform execution with appium. |
What is your device os version |
@VyshnaviNagaruru please provide full server logs |
ServerLogs.txt |
Appium device-farm stream (Screen 2) is installed for your devices ? İf not can you check screen 1 settings in Developer mode page |
@erdncyz Appium Device Farm is not installed in my device, but option shared in screen 1 is enabled (Verify Apps over USB) |
can you try install manually please and then try again? Can you install in "https://github.com/AppiumTestDistribution/appium-device-farm/blob/main/device-farm.apk" here. We can understand problem deal with this issue. |
@erdncyz Error Logs: [device-farm-main] Streaming apk not present, so downloading.. |
Issue Details
Installed latest appium version 2.12.1 and device farm plugin 9.4.5. Started appium server with appium device farm plugin enabled.
Connected to local host device farm URL (http://localhost:4723/device-farm/).
When I clicked on Use Device for available devices, unable to create session got below error.
Logs
[device-farm-main] Received error from remote node: {"message":"Request failed with status code 500","name":"AxiosError","stack":"AxiosError: Request failed with status code 500\n at settle (/Users/.../.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/settle.js:19:12)\n at IncomingMessage.handleStreamEnd (/Users/.../.appium/node_modules/appium-device-farm/node_modules/axios/lib/adapters/http.js:599:11)\n at IncomingMessage.emit (node:events:532:35)\n at endReadableNT (node:internal/streams/readable:1696:12)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)\n at Axios.request (/Users/nagaruru.vyshnavi/.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/Axios.js:45:41)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http","fetch"],"transformRequest":[null],"transformResponse":[null],"timeout":260000,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/json","User-Agent":"axios/1.7.7","Content-Length":"555","Accept-Encoding":"gzip, compress, deflate, br"},"method":"post","url":"http://127.0.0.1:4723/wd/hub/session","data":"{\"capabilities\":{\"alwaysMatch\":{\"platformName\":\"android\",\"appium:automationName\":\"UIAutomator2\",\"appium:newCommandTimeout\":120,\"appium:waitForIdleTimeout\":10,\"appium:udid\":\"RZ8N800R06E\",\"df:skipReport\":true,\"appium:systemPort\":54035,\"appium:adbExecTimeout\":80000,\"appium:uiautomator2ServerLaunchTimeout\":60000},\"firstMatch\":[{}]},\"desiredCapabilities\":{\"platformName\":\"android\",\"appium:automationName\":\"UIAutomator2\",\"appium:newCommandTimeout\":120,\"appium:waitForIdleTimeout\":10,\"appium:udid\":\"RZ8N800R06E\",\"df:skipReport\":true,\"appium:systemPort\":54035}}"},"code":"ERR_BAD_RESPONSE","status":500}
[HTTP] <-- POST /device-farm/api/dashboard/appiumSession 400 1107 ms - 886
Version Details
npm version - 10.8.1
node version - v22.4.1
appium version - v2.12.1
device farm plugin - v9.4.5
The text was updated successfully, but these errors were encountered: