Help me to use vertax ai api properly..
im in doing a project nowadays. I got've a servere problem while i'm using vertax ai api. I was being happy when i got the ai propt answer at first in Development Environment in my private computer. but this ai code doesn't work in EC2 Server which throws an error says proper authentication is not proved. However I quite assure that I authenticated the processure of CGD... I did.
1) to make a project in google cloude console.
2) to generate json key of project service account.
3) to enable vertax ai api.
4) to relocate the json key from local to EC2 server.
5) to register the key in environment of EC2 server.
6) to acctivate the service account with the environemnt by the registered key.
proper login, json key. authentication...well
I don't know the exact cause..
does the matter of using pretier? which google support $300 for begginers.
Hi @Dongson77,
Welcome to Google Cloud Community!
It looks like you are encountering an authentication error with the Vertex AI API on an AWS EC2 server. The issue might be due to an incorrect key file path, insufficient permissions, or misconfigured environment variables.
According to this documentation:
If you are running your application outside of Google Cloud, you need to provide credentials that are recognized by Google Cloud to use Google Cloud services.
In addition, here are other potential ways that might help with your use case:
You may refer to the documentation below, which offers essential insights into understanding, diagnosing, and resolving authentication issues:
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |