{"action":"created","issue":{"url":"https://api.github.com/repos/guzzle/guzzle/issues/1043","labels_url":"https://api.github.com/repos/guzzle/guzzle/issues/1043/labels{/name}","comments_url":"https://api.github.com/repos/guzzle/guzzle/issues/1043/comments","events_url":"https://api.github.com/repos/guzzle/guzzle/issues/1043/events","html_url":"https://github.com/guzzle/guzzle/issues/1043","id":71856310,"number":1043,"title":"GuzzleHttp\\Exception\\RequestException: Undefined variable: response","user":{"login":"jonathan-s","id":2124818,"avatar_url":"https://avatars.githubusercontent.com/u/2124818?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathan-s","html_url":"https://github.com/jonathan-s","followers_url":"https://api.github.com/users/jonathan-s/followers","following_url":"https://api.github.com/users/jonathan-s/following{/other_user}","gists_url":"https://api.github.com/users/jonathan-s/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathan-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathan-s/subscriptions","organizations_url":"https://api.github.com/users/jonathan-s/orgs","repos_url":"https://api.github.com/users/jonathan-s/repos","events_url":"https://api.github.com/users/jonathan-s/events{/privacy}","received_events_url":"https://api.github.com/users/jonathan-s/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-29T12:04:10Z","updated_at":"2015-04-30T10:09:52Z","closed_at":null,"body":"I'm getting this error after running this code. $httpMethod is 'GET' and $path is a regular url path.\r\n\r\n        $request = $this->client->createRequest($httpMethod, $path);\r\n        $response = $this->client->send($request);\r\n\r\n`$this->client` is an instance of `GuzzleHttp\\Client`.\r\n\r\nThe full traceback I get is the following. Any clues where things might go wrong? Or what could trigger the error? \r\n\r\n    GuzzleHttp\\Exception\\RequestException: Undefined variable: response\r\n\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:51\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/RequestFsm.php:147\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/RequestFsm.php:132\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/react/promise/src/FulfilledPromise.php:24\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php:55\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/Message/FutureResponse.php:43\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/RequestFsm.php:135\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/Client.php:232\r\n    /Users/jonathan/projects/api-php-wrapper/lib/serverdensity/HttpClient/HttpClient.php:166\r\n    /Users/jonathan/projects/api-php-wrapper/test/serverdensity/Tests/functional/UserTest.php:81\r\n\r\n    Caused by\r\n    PHPUnit_Framework_Error_Notice: Undefined variable: response\r\n\r\n    /Users/jonathan/projects/api-php-wrapper/lib/serverdensity/HttpClient/Listener/ErrorListener.php:41\r\n    /Users/jonathan/projects/api-php-wrapper/lib/serverdensity/HttpClient/HttpClient.php:62\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/Event/Emitter.php:109\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/RequestFsm.php:106\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/RequestFsm.php:132\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/react/promise/src/FulfilledPromise.php:24\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php:55\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/Message/FutureResponse.php:43\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/RequestFsm.php:135\r\n    /Users/jonathan/projects/api-php-wrapper/vendor/guzzlehttp/guzzle/src/Client.php:232\r\n    /Users/jonathan/projects/api-php-wrapper/lib/serverdensity/HttpClient/HttpClient.php:166\r\n    /Users/jonathan/projects/api-php-wrapper/test/serverdensity/Tests/functional/UserTest.php:81\r\n"},"comment":{"url":"https://api.github.com/repos/guzzle/guzzle/issues/comments/97727647","html_url":"https://github.com/guzzle/guzzle/issues/1043#issuecomment-97727647","issue_url":"https://api.github.com/repos/guzzle/guzzle/issues/1043","id":97727647,"user":{"login":"jonathan-s","id":2124818,"avatar_url":"https://avatars.githubusercontent.com/u/2124818?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathan-s","html_url":"https://github.com/jonathan-s","followers_url":"https://api.github.com/users/jonathan-s/followers","following_url":"https://api.github.com/users/jonathan-s/following{/other_user}","gists_url":"https://api.github.com/users/jonathan-s/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathan-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathan-s/subscriptions","organizations_url":"https://api.github.com/users/jonathan-s/orgs","repos_url":"https://api.github.com/users/jonathan-s/repos","events_url":"https://api.github.com/users/jonathan-s/events{/privacy}","received_events_url":"https://api.github.com/users/jonathan-s/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T10:09:52Z","updated_at":"2015-04-30T10:09:52Z","body":"@kamilsk Magic! I didn't know you could use that construct. Thanks a bunch for the help <3"}}