Closed mietzen closed 1 year ago
This looks more like a question than a bug. Please use the discussions page for questions. CC @samford who'll know more about using JSON livecheck.
@carlocab not sure is this related, but for me it looks like something is broken
% brew update
Error: Failed to download https://formulae.brew.sh/api/cask.jws.json!
==> Downloading https://formulae.brew.sh/api/cask.jws.json
curl: (22) The requested URL returned error: 404
Error: Failure while executing; `/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --user-agent Homebrew/4.0.5\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 13.2.1\)\ curl/7.86.0 --header Accept-Language:\ en --fail --progress-bar --location --remote-time --output /Users/jessehaka/Library/Caches/Homebrew/api/cask.jws.json --compressed --speed-limit 100 --speed-time 5 --progress-bar https://formulae.brew.sh/api/cask.jws.json` exited with 22. Here's the output:
curl: (22) The requested URL returned error: 404
I have this same issue. I cannot seem to install anything or do a 'brew update'. I'm on MacOS 11.7.4.
Getting https://formulae.brew.sh/api/cask.jws.json simply returns 404.
seems working again
This issue was solved by https://github.com/Homebrew/brew/pull/14890 @samford also provided a pull-request in my Repo: https://github.com/mietzen/homebrew-thorium-cask/pull/1
yup
not sure is this related, but for me it looks like something is broken
% brew update Error: Failed to download https://formulae.brew.sh/api/cask.jws.json! ==> Downloading https://formulae.brew.sh/api/cask.jws.json curl: (22) The requested URL returned error: 404 Error: Failure while executing; `/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --user-agent Homebrew/4.0.5\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 13.2.1\)\ curl/7.86.0 --header Accept-Language:\ en --fail --progress-bar --location --remote-time --output /Users/jessehaka/Library/Caches/Homebrew/api/cask.jws.json --compressed --speed-limit 100 --speed-time 5 --progress-bar https://formulae.brew.sh/api/cask.jws.json` exited with 22. Here's the output: curl: (22) The requested URL returned error: 404
Just to clarify, this issue only applies to the brew livecheck
command and is unrelated to the formulae.brew.sh API for installing formulae/casks. Any problems with the Homebrew API should be in a separate issue.
not working again
This was happening intermittently today for me too:
Error: Failed to download https://formulae.brew.sh/api/cask.jws.json!
==> Downloading https://formulae.brew.sh/api/cask.jws.json
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 5232 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
Warning: cask.jws.json: update failed, falling back to cached version.
Could we skip a failed formula fetch and just postpone upgrading until it's back?
@parkr @terion-name You should open a new Issue, your error is not related to this Issue. This issue was specifically about a livecheck that failed from a cask I wrote.
See Samford reply above:
Just to clarify, this issue only applies to the brew livecheck command and is unrelated to the formulae.brew.sh API for installing formulae/casks. Any problems with the Homebrew API should be in a separate issue.
@samford or @carlocab I think it's best if you lock the discussion. Since this Issue is solved.
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
I'm trying to create a (my first) Cask for the Thorium Browser. The Mac releases are shuffled between other "special" releases: https://github.com/Alex313031/Thorium-Special/releases/
This means that the latest version might not always be a MacOS version. At the moment the latest is Westmere Release - M110.0.5481.178 A build only for Westmere CPU's on linux.
I'm now trying to implement a
livecheck
:But it fails with:
I guess
https://api.github.com/repos/Alex313031/Thorium-Special/releases
needs aPOST
request butbrew
performs aGET
request.I've very limited knowledge of ruby but when looking at: https://github.com/Homebrew/brew/blob/master/Library/Homebrew/livecheck/strategy/json.rb I would have thought that this should work.
Here is a link to my tap: https://github.com/mietzen/homebrew-thorium-cask
What happened (include all command output)?
What did you expect to happen?
That the JSON file is loaded.
Step-by-step reproduction instructions (by running
brew
commands)