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.

Unable to pullFile - timeout

See original GitHub issue

The problem

After upgrading appium to 1.15.1 I can no longer pull file from iOS device. I resolved this problem on 2 macs by updating node and npm version to 12.13.1 and 6.12.1 and after doing same on 2 others computers did not help.

I also updated node to latest version 13.6.0 and it did not help

ifuse pull file works normally

Environment

  • Appium version (or git revision) that exhibits the issue: 1.15.1
  • Last Appium version that did not exhibit the issue (if applicable): 1.14
  • Desktop OS/version used to run Appium: macOS
  • Mobile platform/version under test: iOS
  • Real device or emulator/simulator: Real device

Link to Appium logs

https://gist.github.com/walkeraki/173ba9960750442e222b461b759cc7b5

Code To Reproduce Issue [ Good To Have ]

` @Override public String saveApplicationLog(String outPath) { String logPath = socketDriver.getLogPath(); String logFileName = FilenameUtils.getBaseName(logPath); File logFile = new File(outPath + File.separator + logFileName); String remoteFolder = “@” + appiumDriver.getSessionDetails().get(“CFBundleIdentifier”) + “/Documents/”; String fileNameWithExtension = FilenameUtils.getName(logPath); logPath = remoteFolder + fileNameWithExtension; byte[] logData = appiumDriver.pullFile(logPath);

    try {
        writeByteArrayToFile(logFile, logData);
    } catch (IOException e) {
        throw new FileException("Couldn't save log to file", e);
    }
    return logPath;
}`

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Northlander9commented, Jan 16, 2020

It works on latest beta

1reaction
KazuCocoacommented, Jan 15, 2020

What about the latest beta? (Please make sure the beta has appium-xcuitest-driver@3.12.1)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Timeout while trying to upload a file from storage to an FTP ...
I am able to connect to the server but when it comes to upload files, I am faced with a connection timeout. I...
Read more >
Upload your files on App Automate | BrowserStack Docs
Use Appium's push and pull file commands. Use BrowserStack's API and capability. App Automate provides a REST API request and a capability to...
Read more >
AppiumLibrary - GitHub Pages
Documentation. Waits until element specified with locator disappears from current page. Fails if timeout expires before the element disappears.
Read more >
AppiumLibrary - PythonHosted.org
timeout is the default timeout used to wait for all waiting actions. ... available libraries) to execute when a AppiumLibrary keyword fails.
Read more >
Python pull file - ProgramCreek.com
def PullFile(self, device_path, host_path, timeout=None, retries=None): ... in seconds retries: number of retries Raises: CommandFailedError on failure.
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