question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error during installation process - Path must be a string

See original GitHub issue

The problem

When I start using appium@beta version 1.14.0-beta.2, I got the error during installation process on the real device: Path must be a string. Received undefined.

Environment

  • Appium version: 1.14.0-beta.2
  • Real device or emulator/simulator: real device
  • Mobile platform/version under test: 13.0
  • Npm: 6.11.3
  • Node: 8.12.0

Details

This is my capabilities:

DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 5000);
desiredCapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, System.getProperty("deviceName"));
desiredCapabilities.setCapability(MobileCapabilityType.UDID, System.getProperty("deviceUdid"));
desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, System.getProperty("platformVersion"));
desiredCapabilities.setCapability(MobileCapabilityType.APP, System.getProperty("appFilePath"));
desiredCapabilities.setCapability("autoGrantPermissions", true);
desiredCapabilities.setCapability(MobileCapabilityType.FULL_RESET, true);
desiredCapabilities.setCapability(MobileCapabilityType.NO_RESET, false);
desiredCapabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, Settings.IOS_AUTOMATION_NAME);
desiredCapabilities.setCapability("usePrebuiltWDA", true);
mobileDriver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), desiredCapabilities);

Link to Appium logs

Here are the logs: https://gist.github.com/jovana119/2db809a17d8eb00736a807a3d763bccf

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jovana119commented, Sep 9, 2019

Yes and it didn’t help. I’m still getting operation timed out error during installation.

1reaction
hardik-plumecommented, Sep 17, 2019

able to install the app now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Error: path must be a string" (v5.10.0) - Stack Overflow
I have this file (a large bundle of a couple of JS files) that used to work with browserify ( ...
Read more >
Visual Studio 2017 installer fails
2018-10-05T12:25:28 : Error : Failed to start the setup updater service. error: Path must be a string. Received undefined at Error: Path must...
Read more >
Error: Path must be a string. Received undefined - Forge
In my case const { WebClient } = require("@slack/web-api"); was causing the problem. Changing it to import declaration didn't fix the issue ...
Read more >
Error installing cordova-plugin-firebase': TypeError - OutSystems
Error installing cordova-plugin-firebase': TypeError: Path must be a string. ... We are using firebase cordova plugin in our mobile application.
Read more >
Application installation common error codes reference
There may be an issue with the package, in some cases you may need to rebuild and redistribute it. This issue can also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found