Skip to content
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

🐛 [BUG] Cache error in mas info/outdated #328

Closed
1 task done
duhd1993 opened this issue Mar 17, 2021 · 2 comments · Fixed by #345
Closed
1 task done

🐛 [BUG] Cache error in mas info/outdated #328

duhd1993 opened this issue Mar 17, 2021 · 2 comments · Fixed by #345
Labels

Comments

@duhd1993
Copy link

duhd1993 commented Mar 17, 2021

Your Environment

  • mas version:1.8.1
  • macOS version (system_profiler SPSoftwareDataType -detailLevel mini): 11.2.3

mas Install Method

  • brew install mas (homebrew-core)
  • [] mas-cli/tap
  • [] .pkg installer from releases
  • [] Built from source
    • Fork/branch: ? (e.g. mas-cli/master)
    • Xcode version: 10.?

Describe the Bug

A clear and concise description of what the bug is.

Running mas info xx or mas outdated sometimes incur errors like this

2021-03-16 21:23:54.978 mas[19064:1993163] INFO: fetch-response is unable to open the file /Users/username/Library/Caches/com.mphys.mas-cli/fsCachedData/9C5B8520-0F28-4B6D-BCC4-B2F851254EED. Errno: 2

This file exists, but it has an extra .tmp extension. It seems to be related to

session.loadData(from: url) { (data: Data?, error: Error?) in

In my case, the error happens every other run. Run 1, no error, and creates the file with .tmp extension. Run 2, shows error, and create the file with no extension, which is correct. Run 3, no error, and creates the file with .tmp extension...

To Reproduce

Steps to reproduce the behavior:

  1. mas info 1333542190 Run twice

Expected Behavior

A clear and concise description of what you expected to happen.

No error..

Actual Behavior

A clear and concise description of what actually happened.

Shows error.

Screenshots, Terminal Output

If applicable, add screenshots to help explain your problem.

$ mas command
...

Additional Context

Add any other context about the problem here.
Did it work in a previous version?

There are some discussions on this in #306

@phatblat
Copy link
Member

Thanks for the bug report!

@chris-araman
Copy link
Contributor

This should be fixed in #345 and is expected to be included in the next release.

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

Successfully merging a pull request may close this issue.

3 participants