Google Service exception

APD Toronto
APD Toronto used Ask the Experts™
Hi Experts,

I am trying to connect to Google Calendar API, but I am getting Not found error. What could it be, I already added the client ID as permission into the Calendar that I want to use.

PHP Fatal error:  Uncaught Google_Service_Exception: {
 "error": {
  "errors": [
    "domain": "global",
    "reason": "notFound",
    "message": "Not Found"
  "code": 404,
  "message": "Not Found"
 in C:\inetpub\wwwroot\CRM_COR\utilities\google_calendar\src\Google\Http\REST.php:118
Stack trace:
#0 C:\inetpub\wwwroot\CRM_COR\utilities\google_calendar\src\Google\Http\REST.php(94): Google_Http_REST::decodeHttpResponse(Object(GuzzleHttp\Psr7\Response), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...')
#1 C:\inetpub\wwwroot\CRM_COR\utilities\google_calendar\src\Google\Task\Runner.php(176): Google_Http_REST::doExecute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...')
#2 C:\inetpub\wwwroot\CRM_COR\utilities\google_calendar\src\Google\Http\REST.php(58): Google_Task_Runner->run()
#3 C:\inetpub\wwwroot\CRM_COR\utilities\google_calendar\src\Google\Client.php(788): Google_Http_REST::execute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...', Array)
#4  in C:\inetpub\wwwroot\CRM_COR\utilities\google_calendar\src\Google\Http\REST.php on line 118

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
We'd need to see your code. The error itself simply indicates you likely have the wrong endpoint/URL for the API.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial