Warning: count(): Parameter must be an array or an object that implements Countable in D:\scienceroot\running\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67

Fatal error: Uncaught Google_Service_Exception: { "error": { "code": 401, "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "errors": [ { "message": "Invalid Credentials", "domain": "global", "reason": "authError", "location": "Authorization", "locationType": "header" } ], "status": "UNAUTHENTICATED" } } in D:\scienceroot\running\vendor\google\apiclient\src\Google\Http\REST.php:118 Stack trace: #0 D:\scienceroot\running\vendor\google\apiclient\src\Google\Http\REST.php(94): Google_Http_REST::decodeHttpResponse() #1 D:\scienceroot\running\vendor\google\apiclient\src\Google\Task\Runner.php(181): Google_Http_REST::doExecute() #2 D:\scienceroot\running\vendor\google\apiclient\src\Google\Http\REST.php(58): Google_Task_Runner->run() #3 D:\scienceroot\running\vendor\google\apiclient\s in D:\scienceroot\running\vendor\google\apiclient\src\Google\Http\REST.php on line 118