-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
bug: Call to getPageSource failed when call is returning a 200 (Android simulator) #1729
Comments
Could you please provide the full Appium log? |
Closing due to no response |
Hi! The issue has been reproduced on Mac + Simulator Pixel 8 Pro Android 14: [email protected] [installed (npm)] |
@eglitise Please reopen the bug - I've submitted the requested info |
@AlikShegidevich thanks for the info. Could you also try to reproduce this using https://inspector.appiumpro.com/ ? I would like to check whether the problem is specific to Electron, or affects both versions. |
@eglitise The below lines look highly suspicious to me:
This looks like inspector is caching server responses, while it never should. |
Closing due to no response |
I am still seeing the issue and not sure how to proceed. Can anyone please let me know if you found a solution for this? The issue happens on https://inspector.appiumpro.com/ too. |
It might be a duplicate of appium/appium#20503 (comment) |
I tried to compare but not sure if they are the same. I tried every option but somehow it errors out all the time say maybe I get lucky once in every 50 attempts!! Can you please let me know any alternative maybe to continue working.. Thanks for the help. |
What exactly did you try? |
Node version: 20.61. - As most stable with webdriverio and appium. Started an emulator, started appium server, open the appium inspector and connect to an Android APK. After navigating to some pages that are like overlay pages, when I try to refresh the session on the inspector, it loads the 'Call to getPageSource failed' as above. Do you think I should try a newer version of Node? I had 23 but it was causing issues with webdriverio and appium so downgraded recently. |
Try version 22.11.0 |
@sreejits139 is this app publicly available? I would like to reproduce this on my end. |
My current guess is that this might be caused by the |
Ok, I think I can reproduce this by adding the unicode replacement character in the application DOM. With xmldom 0.8.10, it is being parsed without any issues. |
The issue should be fixed in version 2024.12.1. Thanks to everyone who reported it! |
Is this an issue specifically with Appium Inspector?
Is there an existing issue for this?
Current Behavior
When I refresh the source and screenshot on our app I get an error that says Call to
'getPageSource' failed Unicode replacement character detected, source encoding issues?
. This doesn't make sense because the getPageSource is returning a 200.This is only an issue with Android and not an issue in iOS.
Appium Logging:
Expected Behavior
The getPageSource call should be processed and the app page should appear in appium inspector
Operating System
Mac
Appium Inspector Version
2024.9.1 (not an issue in appium 2024.3.4)
Appium Version
2.6.0
Further Information
Driver version
Simulator = Pixel 6 pro running Android 13
The text was updated successfully, but these errors were encountered: