genkovich / DialogFlowBotManMiddleware

Middleware for BotMan (BotMan Studio). Integration with DialogFlow API v2.
MIT License
12 stars 3 forks source link

Google cloud #1

Open adnandogar opened 2 years ago

adnandogar commented 2 years ago

Hi,

Might be i am posting in wrong directory but when adding this package and following all credentials i am getting this error:

php artisan config:cache

Could not construct ApplicationDefaultCredentials {"exception":"[object] (Google\ApiCore\ValidationException(code: 0): Could not construct ApplicationDefaultCredentials at /var/www/zboto/vendor/google/gax/src/CredentialsWrapper.php:256, DomainException(code: 0): Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information at /var/www/zboto/vendor/google/auth/src/ApplicationDefaultCredentials.php:189)

Kindly help out.

homemadestea58 commented 2 years ago

Getting this too. Any idead @genkovich

safarovitch commented 1 year ago

I came accross the same problem today, this happens simply when driver can not read credentials json file from the path you entered in .env as GOOGLE_APPLICATION_CREDENTIALS. Simply change json file location to public/storage folder and set env variable to GOOGLE_APPLICATION_CREDENTIALS="storage/json-name.json"