After upgrading to 3.0.2, i receive this error when deploying. Reverting to 3.0.0 fixes the issue.
beautifulslides > firebase deploy --debug
----------------------------------------------------------------------
Command: /usr/local/bin/node /usr/local/bin/firebase deploy --debug
CLI Version: 3.0.2
Platform: darwin
Node Version: v4.4.3
Time: Thu Jun 02 2016 17:49:07 GMT-0700 (PDT)
----------------------------------------------------------------------
> command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
>>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/beautifulslides
Error: The entered credentials were incorrect.
Error Context: {
"requestOptions": {
"method": "GET",
"json": true,
"url": "https://admin.firebase.com/v1/projects/beautifulslides",
"headers": {
"authorization": "Bearer ya29.Ci_2AhwH9BFhZJc0U58AYhQXuLmWpzYQ_9q7jQv-Qddovo33cVMRZdu4oLQDPg3Rxg"
}
},
"body": {
"error": {
"code": "AUTHENTICATION_ERROR",
"message": "The entered credentials were incorrect."
}
},
"response": {
"statusCode": 401,
"body": {
"error": {
"code": "AUTHENTICATION_ERROR",
"message": "The entered credentials were incorrect."
}
},
"headers": {
"server": "nginx",
"date": "Fri, 03 Jun 2016 00:49:07 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "93",
"connection": "close",
"x-content-type-options": "nosniff"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "admin.firebase.com",
"port": 443,
"hostname": "admin.firebase.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/v1/projects/beautifulslides",
"path": "/v1/projects/beautifulslides",
"href": "https://admin.firebase.com/v1/projects/beautifulslides"
},
"method": "GET",
"headers": {
"authorization": "Bearer ya29.Ci_2AhwH9BFhZJc0U58AYhQXuLmWpzYQ_9q7jQv-Qddovo33cVMRZdu4oLQDPg3Rxg",
"accept": "application/json"
}
}
}
}
BUMP.
Hi folks, I'm not able to reproduce this issue on any machine I've tried it on. Also, between 3.0.0 and 3.0.2 there weren't any changes that I can see affecting deploy in this way.
Can you also please doublecheck the following:
firebase list and determine the project id of the project you're having deploy problems with.cat .firebaserc in your project directory and compare the project there to the project id.In 3.0.0 we had a bug where we kept using the legacy Firebase namespace instead of the new project id when migrating projects. My best guess is this is the problem.
That fixed it. thanks!
Just delete firebase file i.e : .firebaserc, firebase.json, then run commands : firebase login, firebase init, firebase deploy, everything works fine.
Thanks @jatinrev your solution worked perfectly
Most helpful comment
Hi folks, I'm not able to reproduce this issue on any machine I've tried it on. Also, between
3.0.0and3.0.2there weren't any changes that I can see affecting deploy in this way.Can you also please doublecheck the following:
firebase listand determine the project id of the project you're having deploy problems with.cat .firebasercin your project directory and compare the project there to the project id.In 3.0.0 we had a bug where we kept using the legacy Firebase namespace instead of the new project id when migrating projects. My best guess is this is the problem.