Open mansigupta07091998 opened 1 week ago
Could you try this and let us know if it works?
I'm having the same problem here, since I updated shorebird
I'm trying to use Shorebird for the first time in my Flutter project, but I'm running into build errors. I followed the setup instructions, but the build keeps failing.
I'm trying to use Shorebird for the first time in my Flutter project, but I'm running into build errors. I followed the setup instructions, but the build keeps failing.
Are you able to share the failure log? We're also reachable on discord: https://discord.gg/shorebird and happy to debug with you.
The most common cause of failure is that the app expects a different version of Flutter than Shorebird is using. Shorebird always uses the latest to build by default unless --flutter-version
is specified: https://docs.shorebird.dev/flutter-version/
tried the solution you suggested but getting same error
I tried only the command shorebird release android, its getting stuck at [
](url)
From Discord:
Curiously, it only happens when I generate the apk, if I remove --artifact apk it works correctly
From Discord:
Curiously, it only happens when I generate the apk, if I remove --artifact apk it works correctly
Why does this giving that error when using --artifact apk then
@mansigupta07091998 that's something we need to figure out 😄
As @eseidel mentioned above, we are looking into it
We're working on adding improved logging and reachability checks to Shorebird CLI in v1.4.1 to better diagnose this type of issue. In the meantime are you able to share the full output for re-running the release command using the --verbose
flag? Thanks!
[Uploading 1728449243655_shorebird.log…]()
When using shorebird android release command Building app bundle with Flutter.txt
CacheUpdateFailure: Failed to download patch: ClientException: Connection closed before full header was received, uri=https://storage.googleapis.com/dop
If you're behind a firewall/proxy, please, make sure shorebird_cli is
allowed to access https://storage.googleapis.com/download.shorebird.dev/shorebird/033ec57900456ca7f8cd4bb59c2773a8ce27cb5d/patch-windows-x64.zip.
This seems like it could be the issue. Can you download that file?
Also, our latest release of the shorebird
tool includes some improved diagnostics for this kind of thing. If you upgrade, you can run shorebird doctor
to run some reachability tests for various endpoints that we use.
by upgrading to new version the command shorebird release android is working fine, but when making the patch using command shorebird patch android its getting stuck at step
I updated to the latest version but I still have the same error when creating a release Command used: shorebird release android --flavor stable --flutter-version 3.16.9 --artifact apk 1729172106014_shorebird.log
Following are the logs when making patch build :
ClientException: Connection closed while receiving data, uri=https://storage.googleapis.com/shorebird_release_artifacts/abf09f24-d1cc-436d-ba80-a9e205 4f2b26%2Fandroid%2Farm%2F112845%2Flibapp.so?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=patch-artifacts-storage-bucket%40code-push-prod.iam.gser viceaccount.com%2F20241017%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20241017T173518Z&X-Goog-Expires=3600&X-Goog-SignedHeaders=host&X-Goog-Signature= 743aacaeccdfcb0464a605c6871a78ce943c9ba388761185b6274a64dfa43d684f5384a9f899405cc35a648b685e02c8dacfa47aad910b4e27fa52af16d55e94a1c709f25fbabdd29bb22252 83425870a12b61936637676b787e11f927e171807fd51ed7b42becd96bb79dc9ea9113b9ede48d8388d1dd18d3e36105d2efc82729e956417b3ffa41175cafb2e20d9c4e19571e58ca2797c2 7ad54fecd9789f5d5a0da1b3b4e13e8dcc15ce9c5b5eb07ead46c8981ca0ad50164ce5cdfc430319d8cc81b9834b2e8cc6ef7e8a782b356bcd130b89635221e594d99b44905c0a23a2f84246e80be5b858549d088fbf87eb33fe45e26c24980ec66fddb743cac006 (1009.6s) [Process.run] git symbolic-ref HEAD (in C:\Users\Imart.shorebird\bin\cache) Exited with code 0
stdout: refs/heads/stable
[Process.run] git rev-parse --verify HEAD (in C:\Users\Imart.shorebird\bin\cache) Exited with code 0
stdout: dc2770f4d869cd57347a7336c91aab47e5247d73
[Process.run] git remote prune origin (in C:\Users\Imart.shorebird\bin\cache) Exited with code 0 [Process.run] git fetch --tags (in C:\Users\Imart.shorebird\bin\cache) Exited with code 0 [Process.run] git rev-parse --verify @{upstream} (in C:\Users\Imart.shorebird\bin\cache) Exited with code 0
stdout: dc2770f4d869cd57347a7336c91aab47e5247d73
getting the following error when using command shorebird release android --artifact apk while if making release apk using flutter build apk command its not giving any error.