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

Failed to download release artifact: 404 Not Found in Patch #1271

Closed
dev-medico opened this issue Sep 15, 2023 · 7 comments
Closed

Failed to download release artifact: 404 Not Found in Patch #1271

dev-medico opened this issue Sep 15, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@dev-medico
Copy link

dev-medico commented Sep 15, 2023

  1. Device - M1 Mac Air
  2. App ID - 3f5268bd-acea-44f3-9e41-cf3f4766f3c3 ( V - [1.0.5+9])
  3. shorebird release command has no error.
  4. it shows the same error whenever I patch.

Error Log -

shorebird patch android
✓ Fetching apps (0.6s)
✓ Building patch (64.7s)
✓ Detected release version 1.0.5+9 (0.5s)
✓ Fetching releases (0.5s)
✓ Fetching release artifacts (1.0s)
✓ Fetching aab artifact (0.3s)
✓ Downloading release artifacts (14.5s)
✗ Verifying patch can be applied to release (0.4s)
Unhandled exception:
Exception: Failed to download release artifact: 404 Not Found
#0      PatchDiffChecker.confirmUnpatchableDiffsIfNecessary (package:shorebird_cli/src/patch_diff_checker.dart:55:7)
<asynchronous suspension>
#1      PatchAndroidCommand.run (package:shorebird_cli/src/commands/patch/patch_android_command.dart:214:7)
<asynchronous suspension>
#2      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#3      ShorebirdCliCommandRunner.runCommand (package:shorebird_cli/src/command_runner.dart:167:18)
<asynchronous suspension>
#4      ShorebirdCliCommandRunner.run (package:shorebird_cli/src/command_runner.dart:95:14)
<asynchronous suspension>
#5      main (file:///Users/sithuaung/.shorebird/packages/shorebird_cli/bin/shorebird.dart:29:5)
<asynchronous suspension>
@dev-medico dev-medico added the bug Something isn't working label Sep 15, 2023
@bryanoltman bryanoltman added this to 1.0 Sep 15, 2023
@bryanoltman bryanoltman moved this to Customers in 1.0 Sep 15, 2023
@eseidel
Copy link
Contributor

eseidel commented Sep 18, 2023

We should definitely give a better error. It appears that the release in question does not exist on our servers, even though we think it should.

https://console.shorebird.dev/apps/3f5268bd-acea-44f3-9e41-cf3f4766f3c3 (I can't click the link, but you should be able to) should be a link to the apps page where you can see what releases our servers do know about.

@eseidel
Copy link
Contributor

eseidel commented Oct 16, 2023

This might go away with #1382

@eseidel eseidel moved this from Customers to Punted in 1.0 Oct 16, 2023
@Srini-B
Copy link

Srini-B commented Oct 17, 2023

Hi, getting the following on android, worked on ios

❯ shorebird patch android -v
[HTTP] GET https://api.shorebird.dev/api/v1/apps
✓ Fetching apps (0.5s)
[Process.run] /Users/cyron/.shorebird/bin/cache/flutter/ef4b661ddc0c71b738432ae59c6bc573e917854b/bin/flutter build appbundle --release
⠏ Building patch... (16.7s)[Process.run] flutter --no-version-check pub get --offline
✓ Building patch (18.7s)
[Process.run] java -jar /Users/cyron/.shorebird/bin/cache/artifacts/bundletool/bundletool.jar dump manifest --bundle=./build/app/outputs/bundle/release/app-release.aab --xpath /manifest/@android:versionName
[Process.run] java -jar /Users/cyron/.shorebird/bin/cache/artifacts/bundletool/bundletool.jar dump manifest --bundle=./build/app/outputs/bundle/release/app-release.aab --xpath /manifest/@android:versionCode
✓ Detected release version 1.2.7+70 (0.2s)
[HTTP] GET https://api.shorebird.dev/api/v1/apps/0c040191-b766-44d9-afac-0f4191d6da29/releases
✓ Fetching releases (0.5s)
[HTTP] GET https://api.shorebird.dev/api/v1/apps/0c040191-b766-44d9-afac-0f4191d6da29/releases/13315/artifacts?arch=aarch64&platform=android
⠴ Fetching release artifacts... (0.4s)[HTTP] GET https://api.shorebird.dev/api/v1/apps/0c040191-b766-44d9-afac-0f4191d6da29/releases/13315/artifacts?arch=arm&platform=android
⠏ Fetching release artifacts... (0.7s)[HTTP] GET https://api.shorebird.dev/api/v1/apps/0c040191-b766-44d9-afac-0f4191d6da29/releases/13315/artifacts?arch=x86_64&platform=android
✓ Fetching release artifacts (1.1s)
[HTTP] GET https://api.shorebird.dev/api/v1/apps/0c040191-b766-44d9-afac-0f4191d6da29/releases/13315/artifacts?arch=aab&platform=android
✓ Fetching aab artifact (0.4s)
[HTTP] GET https://storage.googleapis.com/shorebird_release_artifacts/0c040191-b766-44d9-afac-0f4191d6da29/android/aarch64/13315/dlc.vmcode
✗ Exception: Failed to download file: 404 Not Found (0.4s)

❯ shorebird doctor
Shorebird 0.16.2 • git@github.com:shorebirdtech/shorebird.git
Flutter 3.13.6 • revision ef4b661ddc0c71b738432ae59c6bc573e917854b
Engine • revision 35809a641ed60f9595fcb6c6f939a8768eaca976

✓ Shorebird is up-to-date (0.8s)
✓ Flutter install is correct (0.2s)
✓ AndroidManifest.xml files contain INTERNET permission (31ms)

@bryanoltman
Copy link
Contributor

Just got another report of this on Discord https://discord.com/channels/1030243211995791380/1125516353370075306/1163843314580193493

@bryanoltman
Copy link
Contributor

@bryanoltman
Copy link
Contributor

The user experiencing this issue says that they ran the release command several times before it successfully completed, so my theory is that a release artifact entry existed in the DB with no artifact having been successfully uploaded. Checking the code now to see how that might happen – I could've sworn we only created the DB entries after successfully uploading the artifacts…

@github-project-automation github-project-automation bot moved this from Punted to Done in 1.0 Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants