guness / bitrise-step-firebase-app-distribution

Upload your apps to Firebase and sends email to your testers.
MIT License
36 stars 27 forks source link

Got error when try to distribute #47

Closed argaasasta closed 11 months ago

argaasasta commented 2 years ago

Error: failed to determine AAB info. HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

guness commented 2 years ago

hey, the document you have sent seems irrelevant. you can check relevant documentation over here:

https://firebase.google.com/docs/app-distribution/android/distribute-cli

QuentinFarizon commented 2 years ago

Hello @guness , I'm getting the same error as of today, without any change on our side :

+------------------------------------------------------------------------------+

| (18) firebase-app-distribution@0                                             |
+------------------------------------------------------------------------------+
| id: firebase-app-distribution                                                |
| version: 0.10.0                                                              |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2022-11-02T10:45:15Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
Configs:
  * firebase_token: [REDACTED]
  * service_credentials_file: 
  * app_path: /Users/vagrant/deploy/app-release.aab
  * app: 1:588<redacted>3886:android:406<redacted>9b3f
  * release_notes: <redacted>
  * release_notes_length: 
  * release_notes_file: 
  * testers: 
  * groups: boks
  * flags: 
  * is_debug: false
  * upgrade_firebase_tools: false
App path contains a file, great!! 👍
-- Checking for existing firebase-tools on PATH...
Your machine has firebase-tools@11.1.0 installed.
If you would like to upgrade your install run: curl -sL firebase.tools | upgrade=true bash
Deploying build to Firebase
  firebase appdistribution:distribute "/Users/vagrant/deploy/app-release.aab" --app "1:588<redacted>3886:android:406<redacted>9b3f" --token "[REDACTED]" --release-notes "<redacted>" --groups "<redacted>"
Error: failed to determine AAB info. HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | firebase-app-distribution@0 (exit code: 1)                    | 25.12 sec|
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...b.com/guness/bitrise-step-firebase-app-distribution/issues |
| Source: https://github.com/guness/bitrise-step-firebase-app-distribution     |
+---+---------------------------------------------------------------+----------+
QuentinFarizon commented 2 years ago

Re-creating a new Firebase CLI auth token worked.
Not sure why the tokens of my two apps were revoked at the same time