{"action":"created","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/edd-amazon-s3/issues/15","labels_url":"https://api.github.com/repos/easydigitaldownloads/edd-amazon-s3/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/edd-amazon-s3/issues/15/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/edd-amazon-s3/issues/15/events","html_url":"https://github.com/easydigitaldownloads/edd-amazon-s3/issues/15","id":106552762,"number":15,"title":"Implement better error/exception catching","user":{"login":"mindctrl","id":1254870,"avatar_url":"https://avatars.githubusercontent.com/u/1254870?v=3","gravatar_id":"","url":"https://api.github.com/users/mindctrl","html_url":"https://github.com/mindctrl","followers_url":"https://api.github.com/users/mindctrl/followers","following_url":"https://api.github.com/users/mindctrl/following{/other_user}","gists_url":"https://api.github.com/users/mindctrl/gists{/gist_id}","starred_url":"https://api.github.com/users/mindctrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindctrl/subscriptions","organizations_url":"https://api.github.com/users/mindctrl/orgs","repos_url":"https://api.github.com/users/mindctrl/repos","events_url":"https://api.github.com/users/mindctrl/events{/privacy}","received_events_url":"https://api.github.com/users/mindctrl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/easydigitaldownloads/edd-amazon-s3/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"cklosowski","id":1390124,"avatar_url":"https://avatars.githubusercontent.com/u/1390124?v=3","gravatar_id":"","url":"https://api.github.com/users/cklosowski","html_url":"https://github.com/cklosowski","followers_url":"https://api.github.com/users/cklosowski/followers","following_url":"https://api.github.com/users/cklosowski/following{/other_user}","gists_url":"https://api.github.com/users/cklosowski/gists{/gist_id}","starred_url":"https://api.github.com/users/cklosowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cklosowski/subscriptions","organizations_url":"https://api.github.com/users/cklosowski/orgs","repos_url":"https://api.github.com/users/cklosowski/repos","events_url":"https://api.github.com/users/cklosowski/events{/privacy}","received_events_url":"https://api.github.com/users/cklosowski/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-09-15T13:14:55Z","updated_at":"2015-09-16T02:11:15Z","closed_at":null,"body":"We need to expose error for common issues, like wrong API keys, incorrect bucket permissions, etc. Here's an example debug.log from a customer that can't view his bucket list:\r\n```\r\n[10-Sep-2015 07:32:22 UTC] PHP Fatal error:  Uncaught exception 'S3Exception' with message 'S3::listBuckets(): [AccessDenied] Access Denied' in /public_html/wp-content/plugins/edd-amazon-s3/s3.php:374\r\nStack trace:\r\n#0 /public_html/wp-content/plugins/edd-amazon-s3/s3.php(374): S3::__triggerError('S3::listBuckets...', '/...', 374)\r\n#1 /public_html/wp-content/plugins/edd-amazon-s3/edd_s3.php(407): S3::listBuckets()\r\n#2 /public_html/wp-content/plugins/edd-amazon-s3/edd_s3.php(243): EDD_Amazon_S3::get_s3_buckets()\r\n#3 [internal function]: EDD_Amazon_S3::s3_upload_download_tab()\r\n#4 /public_html/wp-admin/includes/media.php(518): call_user_func_array(Array, Array)\r\n#5 /public_html/wp-content/plugins/edd-amazon-s3/edd_s3.php(206): wp_iframe(Array)\r\n#6 [internal function]: EDD_Amazon_S3->s3_upload_iframe('')\r\n#7 /public_html/wp-includes/plugin.php(503): call_user_func_array(Array, Array)\r\n#8 /public_html/wp-admin/media-upload.php(101): do_action(' in /public_html/wp-content/plugins/edd-amazon-s3/s3.php on line 374\r\n```\r\n\r\nIn this case, there is no user-facing message. The customer just sees an empty screen on the Amazon tab."},"comment":{"url":"https://api.github.com/repos/easydigitaldownloads/edd-amazon-s3/issues/comments/140603801","html_url":"https://github.com/easydigitaldownloads/edd-amazon-s3/issues/15#issuecomment-140603801","issue_url":"https://api.github.com/repos/easydigitaldownloads/edd-amazon-s3/issues/15","id":140603801,"user":{"login":"cklosowski","id":1390124,"avatar_url":"https://avatars.githubusercontent.com/u/1390124?v=3","gravatar_id":"","url":"https://api.github.com/users/cklosowski","html_url":"https://github.com/cklosowski","followers_url":"https://api.github.com/users/cklosowski/followers","following_url":"https://api.github.com/users/cklosowski/following{/other_user}","gists_url":"https://api.github.com/users/cklosowski/gists{/gist_id}","starred_url":"https://api.github.com/users/cklosowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cklosowski/subscriptions","organizations_url":"https://api.github.com/users/cklosowski/orgs","repos_url":"https://api.github.com/users/cklosowski/repos","events_url":"https://api.github.com/users/cklosowski/events{/privacy}","received_events_url":"https://api.github.com/users/cklosowski/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T02:11:15Z","updated_at":"2015-09-16T02:11:15Z","body":"![screen shot 2015-09-15 at 6 59 38 pm](https://cloud.githubusercontent.com/assets/1390124/9894844/883dcba8-5bdd-11e5-989d-de2b2d4c8f6b.png)\r\n"}}