Open WasiqB opened 3 years ago
@WasiqB Thanks for reporting. Looking into this issue and we'll fix it in 2 days.
@WasiqB Can you please share the name of the device that gets displayed like the below?
@sarathpurushothaman , This is the screenshot of listed devices in the dashboard.
Hi @WasiqB Were you able to allocate/unallocate the connected redmi device and android emulator successfully? I tried to replicate the issue and I couldn't do it. Please find the attached devices that I tried. I used the same request that you have added in the description.
Also, can you please try with the following request once and let me know if it works.
curl -L -iX POST "http://localhost:5353/remote-device-manager/appium/allocate?timeout=120" \
--header "content-type: application/json" \
--header "x-device-request-id: bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b" \
--header "x-request-user: Wasiq" \
--header "x-forwarded-for: localhost" \
--data '{
"is_android": "false",
"is_real_device": "",
"brand": "",
"version": "",
"device_name": "iPhone",
"clear_user_data": false,
"app_package": null
}'
and
curl -L -iX POST "http://localhost:5353/remote-device-manager/appium/allocate?timeout=120" \
--header "content-type: application/json" \
--header "x-device-request-id: bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b" \
--header "x-request-user: Wasiq" \
--header "x-forwarded-for: localhost" \
--data '{
"is_android": "false",
"is_real_device": "",
"brand": "",
"version": "",
"device_name": "iPhone 12",
"clear_user_data": false,
"app_package": null
}'
I tried what you suggested but still got same Error. So I created a Postman request manually.
{
"error": "request id 'bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b' for user 'Wasiq' from 'localhost' ::: unable to allocate device for request 'DeviceRequest(isAndroid=false, isRealDevice=false, brand=Apple, version=14.4, deviceName=iPhone 12 Pro, clearUserData=false, appPackage=null)' even after '60 seconds'"
}
2021-04-10 19:18:01.311 INFO 80424 --- [ scheduling-1] c.l.slave.service.DeviceSyncProcessor : ***** 1307 ms taken to send data DeviceUpdateRequest(ip=192.168.0.103, androidRealDevices=[], androidEmulators=[], iosRealDevices=[], iosSimulators=[IOSDeviceProperty(deviceId=51FF7D1C-3805-4C4F-9E86-DF7DDC4AC856, sdkVersion=14.4, manufacturer=Apple, isAndroid=false, isRealDevice=false)]) *****
2021-04-10 19:18:02.003 ERROR 80424 --- [nio-5252-exec-4] c.l.s.utils.AppiumLocalService$Builder : listening on port '4736' timed out after '60 seconds'
2021-04-10 19:18:03.004 ERROR 80424 --- [nio-5252-exec-4] c.l.s.utils.AppiumLocalService$Builder : ********* bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b ::: unable to start appium process for device '51FF7D1C-3805-4C4F-9E86-DF7DDC4AC856' *********
com.lampo.slave.model.DeviceManagerException: unable to start appium service for device '51FF7D1C-3805-4C4F-9E86-DF7DDC4AC856'
at com.lampo.slave.service.AppiumSessionService.createAppiumSession(AppiumSessionService.java:142)
at com.lampo.slave.controller.AppiumController.createAppiumSession(AppiumController.java:85)
Description
After starting the device manager and slave instance, I am able to see running simulators but when I use
allocate
end-point to start Appium session, I get400 - Bad Request
Error even when using same request sample given in README.Following are the details about the request and response:
Request
Response
Device Manager Logs
Slave Logs