Closed shadow1349 closed 5 years ago
Same exact issue here. Can't deploy Functions.
Error: Firebase.authWithCustomToken failed: First argument must be a valid credential (a string).
firebase-tools 3.17.4 node 9.3.0
@shadow1349 FYI: Rollback to firebase-tools 3.17.0 worked for me.
If you are having the same error I once had. Go into Firebase Console, check your usage under hosting, usage. I was over my free 1gb. Are you over the limit?
Once I changed my plan; the token error went away.
I've been having this same issue since Monday. Occasionally it has worked but with an extremely long delay.
@shadow1349 Rolling back to 3.17.0 did not resolve the issue for me
@progone I am on a blaze plan and only using 55 MB of storage so I don't believe that is the issue
Just had the same issue but a firebase login --reauth
made it start working again for me
Anyone experiencing this issue persistently (on a Mac/Linux device), please try the following:
firebase deploy
, ensure the error is still happeningcat ~/.config/configstore/firebase-tools.json
curl -i --header "Authorization: Bearer <TOKEN>" https://admin.firebase.com/v1/database/<PROJECT_ID>/tokens
Thanks!
On Wed, Mar 7, 2018 at 9:02 AM Mark Guagenti notifications@github.com wrote:
Just had the same issue but a firebase login --reauth made it start working again for me
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/firebase/firebase-tools/issues/689#issuecomment-371207668, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAD_nH-Y53cDegkH1-6Kir8_q3_lWm1ks5tcBKJgaJpZM4Sf_ol .
I am trying to deploy on firebase.
I have deployed in the past and it was working fine.
I tried to deploy a few days ago and I am told the deployment is complete, I am getting no errors, however, when I go to the Hosting URL my old website was there. I have connected it to a custom domain.
I then deleted the old version via the firebase hosting console, now I am just left with 'Welcome Firebase Hosting Setup Complete' screen on the hosting URL.
this has been going on for a few days now. I have tried firebase login --reauth
with no luck.
firebase version 3.17.7 osx
Note: the deployments are showing up in the console but not via either my custom domian or the firebase hosting url thanks
after command firebase deploy it stuck on hosting section. what to do ??
Am having the same problem --reauth doesn't seem to work
i just had the following error and have tried deploy over and over but doesn't work at all. please let me have some solutions.. === Deploying to 'firendlychat-d1c40'...
i deploying database, storage, functions, hosting
Error: An unexpected error has occurred.
Make sure you are running the latest version of firebase tools. You can do that by re-installing firebase tools.
npm install -g firebase-tools
doesnt seem work
If you are on free plan, you can check if the storage is exhausted. From there you can select a plan.
Have my prob done finally. the cause is,i jsut put database-rules.json and storage.json on another directory...
Just change the funications.json to this line of codes and everything will work pretty fine "npm --prefix functions run lint", "npm --prefix functions run build"
Error: HTTP Error: 500, Internal error encountered. firebase-tools 6.3.1
"body": { "error": { "code": 500, "message": "Internal error encountered.", "status": "INTERNAL" } }, "response": { "statusCode": 500, "body": { "error": { "code": 500, "message": "Internal error encountered.", "status": "INTERNAL" } }, "headers": { "vary": "X-Origin, Referer, Origin,Accept-Encoding", "content-type": "application/json; charset=UTF-8", "date": "Wed, 06 Feb 2019 10:03:15 GMT", "server": "ESF", "cache-control": "private", "x-xss-protection": "1; mode=block", "x-frame-options": "SAMEORIGIN", "x-content-type-options": "nosniff", "alt-svc": "quic=\":443\"; ma=2592000; v=\"44,43,39\"", "accept-ranges": "none", "transfer-encoding": "chunked" },
@jagabs - There is a status on the issue: https://status.firebase.google.com/incident/Hosting/19006 - so it's being looked at.
The issue should be resolved as of a couple of hours ago. Sorry for the inconvenience, folks.
I am getting a 410
in response to uploading the project public directory
[2019-03-04T18:46:08.016Z] <<< HTTP RESPONSE 410 server=nginx, date=Mon, 04 Mar 2019 18:46:07 GMT, content-type=application/json; charset=utf-8, content-length=240, connection=close, access-control-allow-origin=*, access-control-allow-methods=GET, PUT, POST, DELETE, OPTIONS, strict-transport-security=max-age=31556926; includeSubDomains; preload
[2019-03-04T18:46:08.017Z] <<< HTTP RESPONSE BODY undefined
[2019-03-04T18:46:08.019Z] TypeError: Cannot read property 'error' of undefined
at module.exports (/Users/user/Repos/stlvl/node_modules/firebase-tools/lib/responseToError.js:10:13)
at Request._callback (/Users/user/Repos/stlvl/node_modules/firebase-tools/lib/api.js:47:25)
at Request.self.callback (/Users/user/Repos/stlvl/node_modules/request/request.js:185:22)
at Request.emit (events.js:197:13)
at Request.EventEmitter.emit (domain.js:446:20)
at Request.<anonymous> (/Users/user/Repos/stlvl/node_modules/request/request.js:1157:10)
at Request.emit (events.js:197:13)
at Request.EventEmitter.emit (domain.js:446:20)
at IncomingMessage.<anonymous> (/Users/user/Repos/stlvl/node_modules/request/request.js:1079:12)
at Object.onceWrapper (events.js:285:13)
Error: An unexpected error has occurred.
@barberousse please open a new issue with all the relevant information.
I just started to get this error without any detail to debug possible causes
[2020-04-14T21:26:32.028Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Tue, 14 Apr 2020 21:26:34 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"quic=\":443\"; ma=2592000; v=\"46,43\",h3-Q050=\":443\"; ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000","accept-ranges":"none","transfer-encoding":"chunked"}
[2020-04-14T21:26:34.032Z] >>> HTTP REQUEST GET https://cloudfunctions.googleapis.com/v1/operations/Y29udmVyc2lvbm9taWNzLTUtZGV2ZWxvcG1lbnQvdXMtY2VudHJhbDEvZmFjZWJvb2stY3hVcGRhdGVMb2FkLzB1b0kyUnpTQlZF
[2020-04-14T21:26:34.464Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Tue, 14 Apr 2020 21:26:36 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"quic=\":443\"; ma=2592000; v=\"46,43\",h3-Q050=\":443\"; ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000","accept-ranges":"none","transfer-encoding":"chunked"}
[2020-04-14T21:26:36.468Z] >>> HTTP REQUEST GET https://cloudfunctions.googleapis.com/v1/operations/Y29udmVyc2lvbm9taWNzLTUtZGV2ZWxvcG1lbnQvdXMtY2VudHJhbDEvZmFjZWJvb2stY3hVcGRhdGVMb2FkLzB1b0kyUnpTQlZF
[2020-04-14T21:26:37.858Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Tue, 14 Apr 2020 21:26:39 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"quic=\":443\"; ma=2592000; v=\"46,43\",h3-Q050=\":443\"; ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000","accept-ranges":"none","transfer-encoding":"chunked"}
[2020-04-14T21:26:39.864Z] >>> HTTP REQUEST GET https://cloudfunctions.googleapis.com/v1/operations/Y29udmVyc2lvbm9taWNzLTUtZGV2ZWxvcG1lbnQvdXMtY2VudHJhbDEvZmFjZWJvb2stY3hVcGRhdGVMb2FkLzB1b0kyUnpTQlZF
[2020-04-14T21:26:40.408Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Tue, 14 Apr 2020 21:26:42 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"quic=\":443\"; ma=2592000; v=\"46,43\",h3-Q050=\":443\"; ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000","accept-ranges":"none","transfer-encoding":"chunked"}
⚠ functions[fn-name(us-central1)]: Deployment error.
Build failed: Build error details not available
I've updated firebase cli to 8.0.3
with no luck. I've enabled Google Cloud Build due to an email where starting from April 20, 2020 it would be required, no luck either
There was an issue deploying your functions. Verify that your project has a Google App Engine instance setup at https://console.cloud.google.com/appengine and try again. If this issue persists, please contact support.
Error: HTTP Error: 404, Could not find Application "fir-friendlychat-6292b". Pls help guys
Just had the same issue but a
firebase login --reauth
made it start working again for me
Worked for me!
Version info
Firebase Version: 3.17.4
Platform Information
OS X and Linux
Steps to reproduce
What I did was create a CI token using the firebase cli by doing firebase login:ci
Now I can't deploy without a token, even though I've logged out and logged back in multiple times, I have also tried going to https://myaccount.google.com/permissions and removed permission then logged in again.
Expected behavior
When I run firebase deploy for my functions I should be able to deploy them.
Actual behavior