Anyone here using APK builded by Expo v32 or above? Appium 'page' command not working


#1

I’m working in a mobile project using React-Native and Expo do build Android and iOS apps.

After update Expo to v32, Appium ‘page’ command throws the error below in generated APK

from UnknownError: An unknown server-side error occurred while processing the command.
Caused by NoMethodError: super: no superclass method `page' for main:Object
from /Library/Ruby/Gems/2.3.0/gems/appium_lib-9.18.0/lib/appium_lib/appium.rb:198:in `block (4 levels) in promote_appium_methods'
Caused by LoadError: cannot load such file -- cli
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'

Does anyone know how to solve it? Previous versions work fine.


#2

@KazuCocoa might know


#3

Can you share your server logs with us?
I guess the root cause is failing create driver


#4

After send page command:

[HTTP] --> GET /wd/hub/session/043168c7-6b31-4433-8d6a-3f1843f19b8d/source
[HTTP] {}
[debug] [W3C (043168c7)] Calling AppiumDriver.getPageSource() with args: [“043168c7-6b31-4433-8d6a-3f1843f19b8d”]
[debug] [AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“source”,“params”:{}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“source”,“params”:{}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: source
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Command returned error:org.w3c.dom.DOMException:
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:13,“value”:""}
[debug] [W3C (043168c7)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command.
[debug] [W3C (043168c7)] at errorFromMJSONWPStatusCode (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10)
[debug] [W3C (043168c7)] at Socket.socketClient.on.data (/usr/local/lib/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:139:18)
[debug] [W3C (043168c7)] at Socket.emit (events.js:197:13)
[debug] [W3C (043168c7)] at addChunk (_stream_readable.js:288:12)
[debug] [W3C (043168c7)] at readableAddChunk (_stream_readable.js:265:13)
[debug] [W3C (043168c7)] at Socket.Readable.push (_stream_readable.js:224:10)
[debug] [W3C (043168c7)] at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
[HTTP] <-- GET /wd/hub/session/043168c7-6b31-4433-8d6a-3f1843f19b8d/source 500 63 ms - 753
[HTTP]