Google Service exception

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

APD TorontoSoftware DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gr8gonzoConsultantCommented:
We'd need to see your code. The error itself simply indicates you likely have the wrong endpoint/URL for the API.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Google

From novice to tech pro — start learning today.