Skip to content

Retry downloads if they fail due to network timeout #344

@philsherry

Description

@philsherry

Your Environment

  • mas version: 1.8.1
  • Homebrew: 3.0.10
  • Homebrew/homebrew-core (git revision 72894f32b1; last commit 2021-03-31)
  • Homebrew/homebrew-cask (git revision 4363b2e34d; last commit 2021-03-31)
  • macOS version: 10.15.7 (19H524)

mas Install Method

brew install mas (homebrew-core)

Describe the Bug

When running brew update, I’m getting network timeouts from the App Store during the mas section of my Brewfile—all brew and cask dependencies install fine. Screenshots attached.

To Reproduce

  1. Run brew update.
  2. Wait for brew and cask sections to complete.
  3. Once mas section starts, pay attention.
  4. See error.

Expected Behavior

I expect Mac App Store installations to go smoothly.

Actual Behavior

Mac App Store installations are interrupted by network timeouts.

Screenshots, Terminal Output

$ brew update
  […]
  Upgrading 1 outdated application:
  Meeter (1.9.3)
  Error: Download request failed: The network connection was lost.
  Installing Meeter has failed!

mas-fail-01
mas-fail-02

Additional Context

This works fine on my 11.2.3 Macs, but this issue is on my work Mac. Until now, I've not had this issue on this Mac, but it's been several weeks since I ran updates.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions