question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I Can't Deploy Using firebase deploy

See original GitHub issue

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

firebase deploy --only functions
Error: An unexpected error has occurred.

[debug] [2018-03-07T07:26:18.988Z] Error: Firebase.authWithCustomToken failed: First argument must be a valid credential (a string).
    at ng (/usr/local/lib/node_modules/firebase-tools/node_modules/firebase/lib/firebase-node.js:129:313)
    at X.gg (/usr/local/lib/node_modules/firebase-tools/node_modules/firebase/lib/firebase-node.js:266:131)
    at /usr/local/lib/node_modules/firebase-tools/lib/acquireRefs.js:19:19
    at initializePromise (/usr/local/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:567:5)
    at new Promise (/usr/local/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:1039:33)
    at /usr/local/lib/node_modules/firebase-tools/lib/acquireRefs.js:12:12
    at tryCatch (/usr/local/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:525:12)
    at invokeCallback (/usr/local/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:538:13)
    at publish (/usr/local/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:508:7)
    at flush (/usr/local/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:2415:5)
[error] 
[error] Error: An unexpected error has occurred.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:22 (3 by maintainers)

github_iconTop GitHub Comments

16reactions
mgenticommented, Mar 7, 2018

Just had the same issue but a firebase login --reauth made it start working again for me

1reaction
Nirali-Techcommented, Aug 1, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't deploy project to firebase - Stack Overflow
1. What it's saying is that it can't access project af2test. Check to see if that project shows up when you run firebase...
Read more >
Get started with Firebase Hosting - Google
Get started with Firebase Hosting · Step 1: Install the Firebase CLI · Step 2: Initialize your project · Step 3: Deploy to...
Read more >
When Your Firebase Cloud Functions Don't Want to Deploy ...
Guided by this StackOverflow question, I fixed the issue by setting my local and Cloud Functions Node.js version to 12. Why did this...
Read more >
Firebase deployment error - Google Groups
The system cannot find the path specified. ... rm your choices. ! You have not selected any features. Continuing will simply associate this...
Read more >
Deploying to Firebase Hosting
We're ready to deploy our Ember app! Using Firebase Hosting, we can deploy our application's static files (HTML, CSS, JavaScript, etc) to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found