{"id":6690,"date":"2014-04-22T00:20:37","date_gmt":"2014-04-22T00:20:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/uncaught-exception-apiserviceexception-with-message-error-calling-get-collection-of-common-programming-errors\/"},"modified":"2014-04-22T00:20:37","modified_gmt":"2014-04-22T00:20:37","slug":"uncaught-exception-apiserviceexception-with-message-error-calling-get-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/uncaught-exception-apiserviceexception-with-message-error-calling-get-collection-of-common-programming-errors\/","title":{"rendered":"Uncaught exception &#39;apiServiceException&#39; with message &#39;Error calling GET &hellip;&#39;-Collection of common programming errors"},"content":{"rendered":"<p>I have a small card game for Google+ which needs the visitor&#8217;s name, avatar, gender and city.<\/p>\n<p>It works for myself, but in the error_log I see a lot of PHP-exceptions:<\/p>\n<pre><code>[28-Jan-2012 19:06:33] PHP Fatal error:  Uncaught exception 'apiServiceException' with message 'Error calling GET https:\/\/www.googleapis.com\/plus\/v1\/people\/me?alt=json&amp;key=AIzaSyAgQl0UeNM553PfLnPmP0jTtcJ8ZIQ3q0g: (404) Not Found' in \/var\/www\/html\/preferans.de\/google\/google-api-php-client\/src\/io\/apiREST.php:86\nStack trace:\n#0 \/var\/www\/html\/preferans.de\/google\/google-api-php-client\/src\/io\/apiREST.php(56): apiREST::decodeHttpResponse(Object(apiHttpRequest))\n#1 \/var\/www\/html\/preferans.de\/google\/google-api-php-client\/src\/service\/apiServiceResource.php(151): apiREST::execute(Object(apiServiceRequest))\n#2 \/var\/www\/html\/preferans.de\/google\/google-api-php-client\/src\/contrib\/apiPlusService.php(207): apiServiceResource-&gt;__call('get', Array)\n#3 \/var\/www\/html\/preferans.de\/google\/index.php(33): PeopleServiceResource-&gt;get('me')\n#4 {main}\n  thrown in \/var\/www\/html\/preferans.de\/google\/google-api-php-client\/src\/io\/apiREST.php on line 86\n<\/code><\/pre>\n<p>Here is my script:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a small card game for Google+ which needs the visitor&#8217;s name, avatar, gender and city. It works for myself, but in the error_log I see a lot of PHP-exceptions: [28-Jan-2012 19:06:33] PHP Fatal error: Uncaught exception &#8216;apiServiceException&#8217; with message &#8216;Error calling GET https:\/\/www.googleapis.com\/plus\/v1\/people\/me?alt=json&amp;key=AIzaSyAgQl0UeNM553PfLnPmP0jTtcJ8ZIQ3q0g: (404) Not Found&#8217; in \/var\/www\/html\/preferans.de\/google\/google-api-php-client\/src\/io\/apiREST.php:86 Stack trace: #0 \/var\/www\/html\/preferans.de\/google\/google-api-php-client\/src\/io\/apiREST.php(56): apiREST::decodeHttpResponse(Object(apiHttpRequest)) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6690","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6690"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6690\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}