-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Getting unexpected data: {"Error":"InvalidHostID","Request":"StartSession"} while calling driver.device_time #19700
Comments
Please provide the server log |
Logs are below. Time setting
1 minute of sleep in the test and then
|
When i just call |
@tomriddly maybe you have some idea on the above error? |
it looks like similar to libimobiledevice/libimobiledevice#922 ...? The link addressed |
Please make sure you can run WDA from xcode. It seems to be a pair issue. |
Closed as third party issue |
Do I have the most recent component updates?
Is the component officially supported by the Appium team?
Is there an existing issue for this?
Current Behavior
Hello, i'm facing the issue while trying to fetch date from the real iOS device using
driver.device_time
Environment:
iOS 17.2
Appium - 2.4.1
XCUITest driver - 5.2.0
Python appium version - 1.0.2 because of project policies.
Desired capabilities:
desired_capabilities: dict = { 'automationName': 'XCUITest', 'platformName': 'iOS', 'deviceName': 'Test iPhone', 'platformVersion': '17.2', 'bundleId': 'mu bundle id', 'udid': 'my udid', 'app': APP_PATH, 'xcodeOrgId': 'my xcodeOrgId', 'xcodeSigninId': 'iPhone Developer', 'autoAcceptAlerts': True, 'fullReset': True, 'noReset': False, 'newCommandTimeout': 20000, 'shouldUseSingletonTestManager': False, 'wdaLocalPort': 8101 }
It happens systematically, i have no idea what's the reason for that.
The only thing i think about is that python appium version 1.0.2 is too obsolete.
Traceback:
phone_time = self.__driver.device_time
../../../../../../../Library/Python/3.9/lib/python/site-packages/appium/webdriver/extensions/device_time.py:37: in device_time
return self.execute(Command.GET_DEVICE_TIME_GET, {})['value']
../../../../../../../Library/Python/3.9/lib/python/site-packages/selenium/webdriver/remote/webdriver.py:321: in execute
self.error_handler.check_response(response)
../../../../../../../Library/Python/3.9/lib/python/site-packages/appium/webdriver/errorhandler.py:31: in check_response
raise wde
../../../../../../../Library/Python/3.9/lib/python/site-packages/appium/webdriver/errorhandler.py:26: in check_response
super().check_response(response)
self = <appium.webdriver.errorhandler.MobileErrorHandler object at 0x12638a250>
response = {'status': 500, 'value': '{"value":{"error":"unknown error","message":"An unknown server-side error occurred while pro...ncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:491:57)"}}'}
E selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unexpected data: {"Error":"InvalidHostID","Request":"StartSession"}
../../../../../../../Library/Python/3.9/lib/python/site-packages/selenium/webdriver/remote/errorhandler.py:242: WebDriverException
Expected Behavior
driver.device_time returns me current date
Minimal Reproducible Example
No idea, i think issue is specific only for my environment
Environment
No response
Link to Appium Logs
No response
Further Information
No response
The text was updated successfully, but these errors were encountered: