New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The entered credentials were incorrect after upgrade to 3.0.2 #166

Closed
mitchgrasso opened this Issue Jun 3, 2016 · 5 comments

Comments

Projects
None yet
5 participants
@mitchgrasso

mitchgrasso commented Jun 3, 2016

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"
      }
    }
  }
}

@MONKATRON

This comment has been minimized.

MONKATRON commented Jun 9, 2016

BUMP.

@mbleigh

This comment has been minimized.

Contributor

mbleigh commented Jun 9, 2016

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:

  1. Run firebase list and determine the project id of the project you're having deploy problems with.
  2. Run cat .firebaserc in your project directory and compare the project there to the project id.
  3. If they don't match, make them match.
  4. Try deploying again.

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.

@mitchgrasso

This comment has been minimized.

mitchgrasso commented Jun 9, 2016

That fixed it. thanks!

@mbleigh mbleigh closed this Jun 20, 2016

@jatinrev

This comment has been minimized.

jatinrev commented Nov 12, 2016

Just delete firebase file i.e : .firebaserc, firebase.json, then run commands : firebase login, firebase init, firebase deploy, everything works fine.

@codewired

This comment has been minimized.

codewired commented Feb 22, 2017

Thanks @jatinrev your solution worked perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment