Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase CLI how to change project scope?firebase init(error:403, The caller does not have permission) uses project url of another account

My error when using firebase init --debug

[2019-01-28T05:32:18.956Z] Error Context: {
  "body": {
"error": {
  "code": 403,
  "message": "The caller does not have permission",
  "status": "PERMISSION_DENIED"
}
},
"response": {
"statusCode": 403,
"body": {
  "error": {
    "code": 403,
    "message": "The caller does not have permission",
    "status": "PERMISSION_DENIED"
  }
},
"headers": {
  "vary": "X-Origin, Referer, Origin,Accept-Encoding",
  "content-type": "application/json; charset=UTF-8",
  "date": "Mon, 28 Jan 2019 05:32:18 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"
},
"request": {
  "uri": {
    "protocol": "https:",
    "slashes": true,
    "auth": null,
    "host": "firebase.googleapis.com",
    "port": 443,
    "hostname": "firebase.googleapis.com",
    "hash": null,
    "search": null,
    "query": null,
    "pathname": "/v1beta1/projects/young-picasso",
    "path": "/v1beta1/projects/young-picasso",
    "href": "https://firebase.googleapis.com/v1beta1/projects/young-picasso"
  },
  "method": "GET"
  }
}
}

How can I change the path of project to the one that i am currently using? I am currently working on project in different account but the path shown is the project of previous account. Currently it shows young picasso but my project path is different in another account. I am new on firebase cli and I dont know how to fix this, how can I fix this?

Also, firebase list command shows my project that i am currently working as current and permission type is owner. I also have already used command firebase -login --reauth to change from previous account to another account.

like image 836
Manish Shrestha Avatar asked Jan 28 '19 06:01

Manish Shrestha


1 Answers

I solved this by delete this file .firebaserc .

Steps:

  1. Find file .firebaserc at Your Application Folder.
  2. Delete it.
  3. Try again at CMD. firebase init

Good luck

like image 89
Ticherhaz FreePalestine Avatar answered Oct 05 '22 23:10

Ticherhaz FreePalestine