0

I have simple user class doing a create and update in Datastore. It's running fine locally, but when I deploy it on Kubernetes, it provides me with the below response:

{ "timestamp": 1525833559351, "status": 500, "error": "Internal Server Error", "exception": "com.google.cloud.datastore.DatastoreException", "message": "Request had insufficient authentication scopes.", "path": "/api/test/sample/5629499534213120" }

For reference, I have followed this Stack Overflow link.

Ryan A.
  • 411
  • 4
  • 13
Ankush Nakaskar
  • 121
  • 1
  • 2
  • 8
  • Please check this [1] accepted answer which I believe is related to your issue. [1] https://stackoverflow.com/questions/35928534/403-request-had-insufficient-authentication-scopes-during-gcloud-container-clu?answertab=votes#tab-top – Ryan A. May 09 '18 at 15:30
  • You might find these answers helpful: https://stackoverflow.com/questions/47021469/how-to-set-google-application-credentials-on-gke-running-through-kubernetes https://stackoverflow.com/questions/50275116/google-cloud-insufficient-authentication-scopes – VAS May 14 '18 at 11:02
  • I got the answer,Its because the service account i used while creating kubernative cluster .I used the correct one with the total access.Its working now.Thanks alot for help. – Ankush Nakaskar May 17 '18 at 03:30
  • +ankush-nakaskar you could provide an answer to this question and get some extra points! – A.Queue May 19 '18 at 13:58

0 Answers0