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

Error after uploading my iOS app to Firebase App Distribution #365

Closed
FDuhen opened this issue Feb 7, 2024 · 2 comments
Closed

Error after uploading my iOS app to Firebase App Distribution #365

FDuhen opened this issue Feb 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@FDuhen
Copy link

FDuhen commented Feb 7, 2024

Issue Description

By using the following Github Action wzieba/Firebase-Distribution-Github-Action, which is using this Firebase command

firebase \
        appdistribution:distribute \
        "$INPUT_FILE" \
        --app "$INPUT_APPID" \
        --groups "$INPUT_GROUPS" \
        --testers "$INPUT_TESTERS" \
        ${RELEASE_NOTES:+ --release-notes "${RELEASE_NOTES}"} \
        ${INPUT_RELEASENOTESFILE:+ --release-notes-file "${RELEASE_NOTES_FILE}"} \
	$( (( $INPUT_DEBUG )) && printf %s '--debug' ) |
{
    while read -r line; do
      echo $line

      if [[ $line == *"View this release in the Firebase console"* ]]; then
        CONSOLE_URI=$(echo "$line" | sed -e 's/.*: //' -e 's/^ *//;s/ *$//')
        echo "FIREBASE_CONSOLE_URI=$CONSOLE_URI" >>"$GITHUB_OUTPUT"
      elif [[ $line == *"Share this release with testers who have access"* ]]; then
        TESTING_URI=$(echo "$line" | sed -e 's/.*: //' -e 's/^ *//;s/ *$//')
        echo "TESTING_URI=$TESTING_URI" >>"$GITHUB_OUTPUT"
      elif [[ $line == *"Download the release binary"* ]]; then
        BINARY_URI=$(echo "$line" | sed -e 's/.*: //' -e 's/^ *//;s/ *$//')
        echo "BINARY_DOWNLOAD_URI=$BINARY_URI" >>"$GITHUB_OUTPUT"
      fi
    done
}

I've got those logs and this error

i  distributing to testers/groups...
✔  distributed to testers/groups successfully
i  starting automated tests (note: this feature is in beta)
✔  Release test created successfully
i  the automated tests results are pending

Error: An unexpected error has occurred.

Which breaks my workflow.
This started today, yesterday I built my app without any problem, and I didn't have the logs about the automated tests.

Complete verbose output

⚠  Authenticating with `FIREBASE_TOKEN` is deprecated and will be removed in a future major version of `firebase-tools`. Instead, use a service account key with `GOOGLE_APPLICATION_CREDENTIALS`: https://cloud.google.com/docs/authentication/getting-started
i  uploading binary...
✔  uploaded new release 1.7.0.76 (373) successfully!
✔  View this release in the Firebase console: https://console.firebase.google.com/project/ahs-provider-mobile-uat/appdistribution/app/ios:com.adeo.ahsProvider.sit/releases/4aioejt63d5to?utm_source=firebase-tools
✔  Share this release with testers who have access: https://appdistribution.firebase.google.com/testerapps/***/releases/4aioejt63d5to?utm_source=firebase-tools
✔  Download the release binary (link expires in 1 hour): https://firebaseappdistribution.googleapis.com/app-binary-downloads/projects/***********
i  updating release notes...
✔  added release notes successfully
i  distributing to testers/groups...
✔  distributed to testers/groups successfully
i  starting automated tests (note: this feature is in beta)
✔  Release test created successfully
i  the automated tests results are pending
Environment
Library Version
fastlane Version used by macos-latest runner
fastlane-plugin-firebase_app_distribution Version used by macos-latest runner
@FDuhen FDuhen added the bug Something isn't working label Feb 7, 2024
@MaesterChestnut
Copy link
Contributor

Hey there! Sorry your workflow was interrupted. We just released a fix to our API that should prevent this from erroring for you. It just released so please try your workflow again.

@kaibolay
Copy link
Collaborator

kaibolay commented Feb 7, 2024

Also, firebase/firebase-tools#6750 fixes the firebase command; version 13.2.1 with this fix has been released.

But you don't have to wait for that - as @MaesterChestnut wrote, we deployed a workaround on the server-side which should unblock you.

PS: https://github.com/firebase/firebase-tools/issues is the appropriate place to report issues (like firebase/firebase-tools#6749) with the firebase command. This issue tracker is for the Firebase App Distribution plugin for the fastlane command.

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
None yet
Development

No branches or pull requests

3 participants