Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

credentials.json fatal error #88

Open
halburgiss opened this issue Dec 29, 2021 · 1 comment
Open

credentials.json fatal error #88

halburgiss opened this issue Dec 29, 2021 · 1 comment

Comments

@halburgiss
Copy link

halburgiss commented Dec 29, 2021

Expected Behavior

No error. I don't see anything about credentials.json .... what is it, where does it go, etc.

Actual Behavior

$ php quickstart.php 

PHP Fatal error:  Uncaught InvalidArgumentException: file "credentials.json" does not exist in /home/hal/public_html/google_cloud/apiclient/vendor/google/apiclient/src/Client.php:980
Stack trace:
#0 /home/hal/public_html/google_cloud/apiclient/quickstart.php(33): Google\Client->setAuthConfig()
#1 /home/hal/public_html/google_cloud/apiclient/quickstart.php(79): getClient()
#2 {main}
  thrown in /home/hal/public_html/google_cloud/apiclient/vendor/google/apiclient/src/Client.php on line 980

Steps to Reproduce the Problem

  1. Copy/paste sample code to quickstart.php
  2. run as php quickstart.php

Specifications

  • PHP version (php -v): 7.4.3
  • OS (Mac/Linux/Windows): Ubuntu 20.04
@bookchiq
Copy link

It is not at all clear from the instructions or the prerequisites themselves, but there's a section at the bottom for Troubleshooting, and in that, an explanation of the actual prerequisites (that result in you having a valid credentials.json file).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants