1

At the command line...

When I run firebase deploy, I get the following error:

Error: The entered credentials were incorrect.

When I run firebase deploy --debug, I get the following (more detailed) error (and log) shown when you click here. (firebase-debug.log)

When I run firebase deploy --project good-project-id, I get the expected deployment behavior.

When I rerun firebase deploy and firebase deploy --debug I get the same errors already described.

How do I make the proper changes to eliminate the errors when running firebase deploy?

Notes:

Community
  • 1
  • 1
Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207

1 Answers1

5

Look at the contents of your .firebaserc file in your project directory. You likely have a "default" project alias specified. Run firebase list and see if that project id shows up there as well (note it should be the project id, not the instance/subdomain name).

If it doesn't match, that's likely your issue. Another thing you can try is deleting the .firebaserc file and then running firebase use --add to create a new project alias.

Michael Bleigh
  • 25,334
  • 2
  • 79
  • 85
  • Hi Michael, I followed your steps to change the target project while deploying cron jobs. But it still showing me the old records. I have the editor permission in the project where I am trying to deploy the cron jobs. Do I need the owner permission for deploying the cron jobs ? – Lokesh Pandey Sep 01 '18 at 04:47