Skip to content

Appium-device-farm plugin doesn't work #1679

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

Open
ly061 opened this issue May 15, 2025 · 6 comments
Open

Appium-device-farm plugin doesn't work #1679

ly061 opened this issue May 15, 2025 · 6 comments

Comments

@ly061
Copy link

ly061 commented May 15, 2025

Describe the bug

My code works well with appium, but if i use plugin it doesn't work anymore

Link to Appium logs

Environment

  1. Appium version - 2.18.0
  2. Last Appium version that did not exhibit the issue (if applicable):
  3. Node.js version: v20.16.0
  4. Npm or Yarn package manager: npm
  5. Mobile platform/version under test: andorid
  6. Real device or emulator/simulator: real
  7. Appium CLI or Appium.app|exe: appium CLI
@sudharsan-selvaraj
Copy link
Member

@ly061 Could you please describe the issue you are currently facing? What exactly is not working and is there any error that is thrown from device farm?

Kindly attach the full appium server logs as gist along with the device-farm version you are using.

@ly061
Copy link
Author

ly061 commented May 15, 2025

The issue is my code works well if I start appium server without device-farm plugin. But when i using device-farm plugin, get below error.

device-farm version is 10.0.3

my java code

Image

Appium log

Image

code error

Image

@sudharsan-selvaraj
Copy link
Member

Before starting the appium server, can you set export NODE_TLS_REJECT_UNAUTHORIZED=0 to the environment variable.

also you need to pass --base-path=/wd/hub as a cli argument to appium server

@ly061
Copy link
Author

ly061 commented May 19, 2025

@sudharsan-selvaraj thanks for your help, it works well on Android now. But in ios still have some error.

Appium log:

[device-farm-main] Updated devices with filter: {"udid":{"$in":["00008101-001SSSD550814DA"]}}
[device-farm-main] Installing Resigned WDA on real device
[AppiumDriver@1790] Command 'createSession' was *not* handled by the following behaviours or plugins, even though they were registered to handle it: ["default"]. The command *was* handled by these: ["device-farm"].
[AppiumDriver@1790] Encountered internal error running command: TypeError: Cannot destructure property 'appBundleId' of '(intermediate value)' as it is null.
    at generator (/Users/joe/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/modules/device-control/DeviceHelper.js:504:21)
    at Generator.next (<anonymous>)
    at fR (/Users/joe/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/modules/device-control/DeviceHelper.js:38:48)
[HTTP] <-- POST /session 500 120043 ms - 720 

My code:

        DesiredCapabilities caps = new DesiredCapabilities();
        caps.setCapability("appium:automationName","xcuitest");
        caps.setCapability("platformName","iOS");
        caps.setCapability("appium:udid","00008101-001SSSD550814DA");
        caps.setCapability("appium:appBundleId","com.tencent.info");
//        caps.setCapability("appium:showXcodeLog",true);

        IOSDriver driver = new IOSDriver(new URL("http://localhost:4723/wd/hub"), caps);
        driver.quit();

@saikrishna321
Copy link
Member

@ly061 Habe u uploader wda-resign.ipa file to device-farm under apps section?

@ly061
Copy link
Author

ly061 commented May 20, 2025

hi @saikrishna321 , it works well after I uploading the wda-resign.ipa, great thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants