Closed ghost closed 4 years ago
@futurGH where were you running @google-cloud/vision
prior to this? In GCP environments credentials are detected automatically, in an AWS environment, you will need to create a service account for credentials and point to the path using the environment variable GOOGLE_APPLICATION_CREDENTIALS
, see:
https://cloud.google.com/docs/authentication/getting-started
@futurGH where were you running
@google-cloud/vision
prior to this? In GCP environments credentials are detected automatically, in an AWS environment, you will need to create a service account for credentials and point to the path using the environment variableGOOGLE_APPLICATION_CREDENTIALS
, see:https://cloud.google.com/docs/authentication/getting-started
Ah, that makes sense. I was previously running it on Glitch.com. I have the env variable set.
I assumed the service account aspect would be different because Lightsail seemed to be a simplified version of other EC2 instances. I'll give that a go. Thanks!
:+1: please feel free to reopen this issue if you continue bumping into issues, but I think you'll find setting the variable does the trick.
Hey! So I recently migrated to Amazon Lightsail to host a project. However, since I started with it, I get the following error when attempting to use Cloud Vision:
Environment details
@google-cloud/vision
version: 1.7.2Steps to reproduce