Giter Club home page Giter Club logo

Comments (3)

amitav13 avatar amitav13 commented on July 21, 2024

Same here, I had this working a couple of weeks ago but I'm getting this error as well.

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.

[2022-03-10T06:25:38.224Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2022-03-10T06:25:38.225Z] > authorizing via FIREBASE_TOKEN environment variable
[2022-03-10T06:25:38.229Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[2022-03-10T06:25:38.229Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token  
 <request body omitted>
[2022-03-10T06:25:38.282Z] <<< HTTP RESPONSE 400 ***"expires":"Mon, 01 Jan [19](https://github.com/valartech/broachcutter-vendor-app/runs/5491580225?check_suite_focus=true#step:14:19)90 00:00:00 GMT","cache-control":"no-cache, no-store, max-age=0, must-revalidate","date":"Thu, 10 Mar [20](https://github.com/valartech/broachcutter-vendor-app/runs/5491580225?check_suite_focus=true#step:14:20)[22](https://github.com/valartech/broachcutter-vendor-app/runs/5491580225?check_suite_focus=true#step:14:22) 06:25:38 GMT","pragma":"no-cache","content-type":"application/json; charset=utf-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","server":"scaffolding on HTTPServer2","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"***
[2022-03-10T06:25:38.283Z] >>> HTTP REQUEST GET https://firebaseappdistribution.googleapis.com/v1/projects/704447610659/apps/***/aabInfo  
 
[2022-03-10T06:25:38.349Z] <<< [apiv2][status] GET https://firebase-public.firebaseio.com/cli.json 200
[2022-03-10T06:[25](https://github.com/valartech/broachcutter-vendor-app/runs/5491580225?check_suite_focus=true#step:14:25):38.349Z] <<< [apiv2][body] GET https://firebase-public.firebaseio.com/cli.json ***"cloudBuildErrorAfter":1594252800000,"cloudBuildWarnAfter":1590019200000,"defaultNode10After":1594252800000,"minVersion":"3.0.5","node8DeploysDisabledAfter":1613390400000,"node8RuntimeDisabledAfter":1615809600000,"node8WarnAfter":1600128000000***
[2022-03-10T06:25:38.462Z] <<< HTTP RESPONSE 401 ***"www-authenticate":"***"[https://accounts.google.com/\](https://accounts.google.com//)", error=\"invalid_token\"","vary":"X-Origin, Referer, Origin,Accept-Encoding","content-type":"application/json; charset=UTF-8","date":"Thu, 10 Mar 2022 06:25:38 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"***
[2022-03-10T06:25:38.463Z] <<< HTTP RESPONSE BODY ***"error":***"code":401,"message":"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.","status":"UNAUTHENTICATED"***

There seems to be a 400 response for the token refresh. Maybe their API structure expects something else now?

from firebase-distribution-github-action.

NizarETH avatar NizarETH commented on July 21, 2024

me too
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid

from firebase-distribution-github-action.

wzieba avatar wzieba commented on July 21, 2024

Thanks for the reports.

I just run test scenarios and the action is working correctly: https://github.com/wzieba/Firebase-Distribution-Github-Action/runs/5806759755?check_suite_focus=true

Please make sure you generate a valid token as explained here #10 (comment).

Please remember that every token has its validity period, so maybe you need to re-generate a new one if it was working for you before.

I'm closing this issue as there's nothing I can do in the action code itself to resolve the described problem.

from firebase-distribution-github-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.