0

I'm approaching to Google Cloud Platform, and I've followed Deploying a containerized web application and I've successfully deployed a small Spring Boot service that uses Cloud Vision API (I'm using the Java client linked at the Vision webpage).

My issue is that when I call the service, I receive the following error message: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Request had insufficient authentication scopes.. Such error appears when the client try to call the Cloud Vision API. I haven't such issue in my local installation of the service because I manually set the environment variable that points to the Google credentials file.

Any hints on what could be the cause of my issue and how to fix it?

Gilberto T.
  • 358
  • 6
  • 19

1 Answers1

0

You need to set the environment variable and the path in your container configuration. You could use this solution to have an idea on how to mount the credentials and the environment variable within the container configuration.

Marit
  • 2,399
  • 18
  • 27
F10
  • 2,843
  • 2
  • 12
  • 18