You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You must have missed the authentication step in the quickstart. YOu need to download a set of service account credentials and then set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the path to those credentials on your filesystem:
Hello!
I'm trying to run the basic code on the page https://cloud.google.com/natural-language/docs/reference/libraries#client-libraries-install-php, but the following error is displayed :
Uncaught Google\Cloud\Core\Exception\ServiceException: { "error": { "code": 403, "message": "The request is missing a valid API key.", "status": "PERMISSION_DENIED" } } in /home/gabriella/Documents/programacao/pesquisa/vendor/google/cloud/Core/src/RequestWrapper.php:336 Stack trace: #0 /home/gabriella/Documents/programacao/pesquisa/vendor/google/cloud/Core/src/RequestWrapper.php(189): Google\Cloud\Core\RequestWrapper->convertToGoogleException(Object(GuzzleHttp\Exception\ClientException)) #1 /home/gabriella/Documents/programacao/pesquisa/vendor/google/cloud/Core/src/RestTrait.php(95): Google\Cloud\Core\RequestWrapper->send(Object(GuzzleHttp\Psr7\Request), Array) #2 /home/gabriella/Documents/programacao/pesquisa/vendor/google/cloud/Language/src/Connection/Rest.php(69): Google\Cloud\Language\Connection\Rest->send('documents', 'analyzeSentimen...', Array) #3 /home/gabriella/Documents/programacao/pesquisa/vendor/google/cloud/Language/src/LanguageClient.php(220): Google\Cloud\Language\Connection\Re in /home/gabriella/Documents/programacao/pesquisa/vendor/google/cloud/Core/src/RequestWrapper.php on line 336.
The text was updated successfully, but these errors were encountered: