{"action":"closed","issue":{"url":"https://api.github.com/repos/google/google-api-php-client/issues/1412","repository_url":"https://api.github.com/repos/google/google-api-php-client","labels_url":"https://api.github.com/repos/google/google-api-php-client/issues/1412/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-php-client/issues/1412/comments","events_url":"https://api.github.com/repos/google/google-api-php-client/issues/1412/events","html_url":"https://github.com/google/google-api-php-client/issues/1412","id":311903807,"node_id":"MDU6SXNzdWUzMTE5MDM4MDc=","number":1412,"title":"Break in error reporting","user":{"login":"saffabook","id":6928921,"node_id":"MDQ6VXNlcjY5Mjg5MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/6928921?v=4","gravatar_id":"","url":"https://api.github.com/users/saffabook","html_url":"https://github.com/saffabook","followers_url":"https://api.github.com/users/saffabook/followers","following_url":"https://api.github.com/users/saffabook/following{/other_user}","gists_url":"https://api.github.com/users/saffabook/gists{/gist_id}","starred_url":"https://api.github.com/users/saffabook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saffabook/subscriptions","organizations_url":"https://api.github.com/users/saffabook/orgs","repos_url":"https://api.github.com/users/saffabook/repos","events_url":"https://api.github.com/users/saffabook/events{/privacy}","received_events_url":"https://api.github.com/users/saffabook/received_events","type":"User","site_admin":false},"labels":[{"id":549346827,"node_id":"MDU6TGFiZWw1NDkzNDY4Mjc=","url":"https://api.github.com/repos/google/google-api-php-client/labels/type:%20question","name":"type: question","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":{"login":"mattwhisenhunt","id":5246939,"node_id":"MDQ6VXNlcjUyNDY5Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/5246939?v=4","gravatar_id":"","url":"https://api.github.com/users/mattwhisenhunt","html_url":"https://github.com/mattwhisenhunt","followers_url":"https://api.github.com/users/mattwhisenhunt/followers","following_url":"https://api.github.com/users/mattwhisenhunt/following{/other_user}","gists_url":"https://api.github.com/users/mattwhisenhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwhisenhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwhisenhunt/subscriptions","organizations_url":"https://api.github.com/users/mattwhisenhunt/orgs","repos_url":"https://api.github.com/users/mattwhisenhunt/repos","events_url":"https://api.github.com/users/mattwhisenhunt/events{/privacy}","received_events_url":"https://api.github.com/users/mattwhisenhunt/received_events","type":"User","site_admin":false},"assignees":[{"login":"mattwhisenhunt","id":5246939,"node_id":"MDQ6VXNlcjUyNDY5Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/5246939?v=4","gravatar_id":"","url":"https://api.github.com/users/mattwhisenhunt","html_url":"https://github.com/mattwhisenhunt","followers_url":"https://api.github.com/users/mattwhisenhunt/followers","following_url":"https://api.github.com/users/mattwhisenhunt/following{/other_user}","gists_url":"https://api.github.com/users/mattwhisenhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwhisenhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwhisenhunt/subscriptions","organizations_url":"https://api.github.com/users/mattwhisenhunt/orgs","repos_url":"https://api.github.com/users/mattwhisenhunt/repos","events_url":"https://api.github.com/users/mattwhisenhunt/events{/privacy}","received_events_url":"https://api.github.com/users/mattwhisenhunt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-04-06T09:15:38Z","updated_at":"2018-06-06T19:13:50Z","closed_at":"2018-06-06T19:13:50Z","author_association":"NONE","body":"Hi, [this line of code](https://github.com/google/google-api-php-client/blob/d669e0f3b92da94d5b4ed960d462dd3b0de920ea/src/Google/Http/REST.php#L118) seems to break the process of error reporting. \r\nThe error is \r\n```\r\n<b>Fatal error</b>:  Uncaught exception 'Google_Service_Exception' with message '{\r\n &quot;error&quot;: &quot;unauthorized_client&quot;,\r\n &quot;error_description&quot;: &quot;Unauthorized&quot;\r\n}\r\n' in C:\\xampp\\htdocs\\Gofamer\\api\\application\\vendor\\google-api-php\\google\\apiclient\\src\\Google\\Http\\REST.php:124\r\nStack trace:\r\n#0 C:\\xampp\\htdocs\\Gofamer\\api\\application\\vendor\\google-api-php\\google\\apiclient\\src\\Google\\Http\\REST.php(94): Google_Http_REST::decodeHttpResponse(Object(GuzzleHttp\\Psr7\\Response), Object(GuzzleHttp\\Psr7\\Request), 'Google_Service_...')\r\n#1 [internal function]: Google_Http_REST::doExecute(Object(GuzzleHttp\\Client), Object(GuzzleHttp\\Psr7\\Request), 'Google_Service_...')\r\n#2 C:\\xampp\\htdocs\\Gofamer\\api\\application\\vendor\\google-api-php\\google\\apiclient\\src\\Google\\Task\\Runner.php(181): call_user_func_array(Array, Array)\r\n#3 C:\\xampp\\htdocs\\Gofamer\\api\\application\\vendor\\google-api-php\\google\\apiclient\\src\\Google\\Http\\REST.php(58): Google_Task_Runner-&gt;run()\r\n#4 C:\r\n```\r\nWhen I get a positive result, all the files seem to line up bar this one. If everything is set up correctly and I am getting good results on positive returns, why would the error return not display correctly on error results?\r\n\r\nEdit: Moved code from title to permalink"}}
{"actor":{"display_login":"mattwhisenhunt"}}