Open zach-fetch opened 1 month ago
Could you please provide the full Appium log? Would it also be possible for you to check the other Inspector versions between these two, to identify the first version with this issue?
Closing due to no response
Hi! The issue has been reproduced on Mac + Simulator Pixel 8 Pro Android 14: Appium Inspector 2024.9.1 Previous version 2024.8.2 doesn't have the issue. Log and screenshot are attached. Not all screens of our android app affected by the issue. Some of them can be inspected, some not. The log covers multiple attempts to Refresh different screens. Last two attempts failed.
uiautomator2@3.5.2 [installed (npm)] Appium 2.6.0
@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:
[HTTP] <-- GET /wd/hub/session/f5cdc235-2222-41e1-bba2-3b75c455ab8f/source 304 367 ms - - [HTTP] <-- GET /wd/hub/session/f5cdc235-2222-41e1-bba2-3b75c455ab8f/timeouts 304 135 ms - -
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 https://github.com/appium/appium/issues/20503#issuecomment-2357928628
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.
I tried every option
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
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