{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-php/issues/1085","repository_url":"https://api.github.com/repos/aws/aws-sdk-php","labels_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/1085/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/1085/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/1085/events","html_url":"https://github.com/aws/aws-sdk-php/issues/1085","id":177118864,"number":1085,"title":"Uncaught exception 'GuzzleHttp\\Exception\\ClientException'","user":{"login":"tatoshko","id":3538729,"avatar_url":"https://avatars.githubusercontent.com/u/3538729?v=3","gravatar_id":"","url":"https://api.github.com/users/tatoshko","html_url":"https://github.com/tatoshko","followers_url":"https://api.github.com/users/tatoshko/followers","following_url":"https://api.github.com/users/tatoshko/following{/other_user}","gists_url":"https://api.github.com/users/tatoshko/gists{/gist_id}","starred_url":"https://api.github.com/users/tatoshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatoshko/subscriptions","organizations_url":"https://api.github.com/users/tatoshko/orgs","repos_url":"https://api.github.com/users/tatoshko/repos","events_url":"https://api.github.com/users/tatoshko/events{/privacy}","received_events_url":"https://api.github.com/users/tatoshko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-php/labels/awaiting-reply","name":"awaiting-reply","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-09-15T08:32:09Z","updated_at":"2016-09-17T01:32:45Z","closed_at":null,"body":"My code\r\n```\r\n$credentials = new \\Aws\\Credentials\\Credentials('<key>', '<secret>');\r\n$client = new \\Aws\\S3\\S3Client([\r\n    'version'     => 'latest',\r\n    'region'      => 'eu-central-1',\r\n    'credentials' => $credentials,\r\n]);\r\n\r\n$data = [\r\n    'Bucket' => 'my-bucket',\r\n    'Key'    => 'not/exists/dir/test.png',\r\n];\r\n\r\ntry {\r\n    $result = $client->getObject($data); // break here\r\n\r\n    var_dump($result); die;\r\n} catch (Exception $e) {\r\n    var_dump($e); die;\r\n}\r\n```\r\n\r\nError from php log:\r\n> FastCGI sent in stderr: \"PHP message: PHP Warning:  Uncaught exception 'GuzzleHttp\\Exception\\ClientException' with message 'Client error: `GET https://s3.eu-central-1.amazonaws.com/my-bucket/not/exists/dir/test.png` resulted in a `404 Not Found` response:\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message> (truncated...)\r\n' in /www/ma/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:107\r\n\r\n\r\nI'am using composer for installing the SDK(also tried dev-master version)."},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-php/issues/comments/247741442","html_url":"https://github.com/aws/aws-sdk-php/issues/1085#issuecomment-247741442","issue_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/1085","id":247741442,"user":{"login":"tatoshko","id":3538729,"avatar_url":"https://avatars.githubusercontent.com/u/3538729?v=3","gravatar_id":"","url":"https://api.github.com/users/tatoshko","html_url":"https://github.com/tatoshko","followers_url":"https://api.github.com/users/tatoshko/followers","following_url":"https://api.github.com/users/tatoshko/following{/other_user}","gists_url":"https://api.github.com/users/tatoshko/gists{/gist_id}","starred_url":"https://api.github.com/users/tatoshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatoshko/subscriptions","organizations_url":"https://api.github.com/users/tatoshko/orgs","repos_url":"https://api.github.com/users/tatoshko/repos","events_url":"https://api.github.com/users/tatoshko/events{/privacy}","received_events_url":"https://api.github.com/users/tatoshko/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T01:32:45Z","updated_at":"2016-09-17T01:32:45Z","body":"@cjyclaire ok. I'am identified the problem.\r\nxdebug.collect_params = 4\r\n\r\nAll works only if collect_params = 1 or disabled."}}
{"actor":{"display_login":"tatoshko"}}