Skip to content
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

PERMISSION_DENIED while initialising the actions repo with firebase. #433

Closed
yagyanshbhatia opened this issue Dec 24, 2018 · 1 comment
Closed

Comments

@yagyanshbhatia
Copy link
Contributor

I can't resolve this issue.. firebase init gives

=== Firestore Setup
Error: HTTP Error: 403, The caller does not have permission
[2018-12-24T06:40:54.474Z] 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, 24 Dec 2018 06:41:30 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,35\"",
      "accept-ranges": "none",
      "connection": "close"
    },
    "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/internet-archive",
        "path": "/v1beta1/projects/internet-archive",
        "href": "https://firebase.googleapis.com/v1beta1/projects/internet-archive"
      },
      "method": "GET"
    }
  }
}

I should have all the permissions required I think
here's firebase list

┌─────────────────┬───────────────────────┬─────────────┐
│ Name            │ Project ID / Instance │ Permissions │
├─────────────────┼───────────────────────┼─────────────┤
├─────────────────┼───────────────────────┼─────────────┤
│ gsoc19          │ gsoc19-37b1c          │ Owner       │
├─────────────────┼───────────────────────┼─────────────┤

@hyzhak Please help me get through this? I've already set up intents and made a few firebase apps to learn, but I'm stuck here

@yagyanshbhatia
Copy link
Contributor Author

Got it. The .firebaserc file was causing the error. I removed it and then proceeded, worked fine.
It had the information for the original project, which I didn't have access to. Now the file looks like this

{
  "projects": {
    "gsoc19": "gsoc19-37b1c",
    "default": "gsoc19-37b1c",
    "gsoc": "gsoc19-37b1c"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant