{"action":"created","issue":{"url":"https://api.github.com/repos/thumbor-community/aws/issues/125","repository_url":"https://api.github.com/repos/thumbor-community/aws","labels_url":"https://api.github.com/repos/thumbor-community/aws/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/thumbor-community/aws/issues/125/comments","events_url":"https://api.github.com/repos/thumbor-community/aws/issues/125/events","html_url":"https://github.com/thumbor-community/aws/issues/125","id":359795451,"node_id":"MDU6SXNzdWUzNTk3OTU0NTE=","number":125,"title":"Load image file failed with aws loader","user":{"login":"zj8487","id":5138447,"node_id":"MDQ6VXNlcjUxMzg0NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/5138447?v=4","gravatar_id":"","url":"https://api.github.com/users/zj8487","html_url":"https://github.com/zj8487","followers_url":"https://api.github.com/users/zj8487/followers","following_url":"https://api.github.com/users/zj8487/following{/other_user}","gists_url":"https://api.github.com/users/zj8487/gists{/gist_id}","starred_url":"https://api.github.com/users/zj8487/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zj8487/subscriptions","organizations_url":"https://api.github.com/users/zj8487/orgs","repos_url":"https://api.github.com/users/zj8487/repos","events_url":"https://api.github.com/users/zj8487/events{/privacy}","received_events_url":"https://api.github.com/users/zj8487/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-13T08:34:53Z","updated_at":"2018-09-13T08:55:05Z","closed_at":null,"author_association":"NONE","body":"Hello all, thanks for your contrubution.\r\n\r\nI config the thumbor with the aws plugin to load image from aws , but it failed.\r\n\r\n### Stacktrace\r\n\r\n```\r\ntumbor_server    | 2018-09-13 08:14:10 thumbor:ERROR ERROR: Traceback (most recent call last):\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/thumbor/handlers/__init__.py\", line 153, in get_image\r\ntumbor_server    |     self.context.request.image_url\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/tornado/gen.py\", line 1133, in run\r\ntumbor_server    |     value = future.result()\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/tornado/concurrent.py\", line 261, in result\r\ntumbor_server    |     raise_exc_info(self._exc_info)\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/tornado/gen.py\", line 1141, in run\r\ntumbor_server    |     yielded = self.gen.throw(*exc_info)\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/thumbor/handlers/__init__.py\", line 588, in _fetch\r\ntumbor_server    |     loader_result = yield self.context.modules.loader.load(self.context, url)\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/tornado/gen.py\", line 1133, in run\r\ntumbor_server    |     value = future.result()\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/tornado/concurrent.py\", line 261, in result\r\ntumbor_server    |     raise_exc_info(self._exc_info)\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/tornado/stack_context.py\", line 339, in wrapped\r\ntumbor_server    |     ret = fn(*args, **kwargs)\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/tornado/concurrent.py\", line 569, in run_callback\r\ntumbor_server    |     result = future.result()\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/tornado/concurrent.py\", line 261, in result\r\ntumbor_server    |     raise_exc_info(self._exc_info)\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/tornado/stack_context.py\", line 339, in wrapped\r\ntumbor_server    |     ret = fn(*args, **kwargs)\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/tornado_botocore/base.py\", line 138, in _process_response\r\ntumbor_server    |     parsed = parser.parse(response_dict, operation_model.output_shape)\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/botocore/parsers.py\", line 207, in parse\r\ntumbor_server    |     if self._is_generic_error_response(response):\r\ntumbor_server    |   File \"/usr/local/lib/python2.7/site-packages/botocore/parsers.py\", line 236, in _is_generic_error_response\r\ntumbor_server    |     body = response['body'].strip()\r\ntumbor_server    | AttributeError: 'NoneType' object has no attribute 'strip'\r\ntumbor_server    | \r\ntumbor_server    | 2018-09-13 08:14:10 thumbor:ERROR [BaseHandler] get_image failed for url `mattermosts/aaa.jpg`. error: `'NoneType' object has no attribute 'strip'`\r\ntumbor_server    | 2018-09-13 08:14:10 tornado.access:ERROR 500 GET /unsafe/mattermosts/aaa.jpg (192.168.176.1) 20010.58ms\r\n```\r\n\r\n### Versions\r\n\r\n```\r\n/home/app # pip freeze\r\nbackports-abc==0.5\r\nbotocore==1.8.50\r\nderpconf==0.8.2\r\ndocutils==0.14\r\nfutures==3.2.0\r\njmespath==0.9.3\r\nlibthumbor==1.3.2\r\npiexif==1.0.13\r\nPillow==5.2.0\r\npycryptodome==3.6.6\r\npycurl==7.43.0.2\r\npython-dateutil==2.7.3\r\npytz==2018.5\r\nPyYAML==3.13\r\nsingledispatch==3.4.0.3\r\nsix==1.11.0\r\nstatsd==3.3.0\r\ntc-aws==6.2.11\r\ntc-core==0.4.1\r\ntc-pdf==0.0.7\r\nthumbor==6.5.2\r\nthumbor-aliases==0.0.2\r\ntornado==5.1\r\ntornado-botocore==1.4.0\r\nWand==0.4.4\r\nwebcolors==1.8.1```\r\n\r\n### Configuration for thumbor and tc_aws\r\n\r\n```.ini\r\nTC_AWS_REGION='us-east-1'\r\nTC_AWS_ENDPOINT='http://192.168.32.104:19001'\r\nTC_AWS_STORAGE_BUCKET=''\r\nTC_AWS_STORAGE_ROOT_PATH=''\r\nTC_AWS_LOADER_BUCKET=''\r\nTC_AWS_LOADER_ROOT_PATH=''\r\nTC_AWS_ENABLE_HTTP_LOADER=True\r\nLOADER='tc_aws.loaders.s3_loader'\r\n```\r\n\r\n### Configuration for boto credentials located in ~/.aws/credentials\r\n\r\n```\r\n[default]\r\naws_access_key_id=minio\r\naws_secret_access_key=minio1234\r\n```\r\n\r\n### Configuration for boto config located in ~/.aws/config\r\n\r\n```\r\n[default]\r\nregion=us-east-1\r\noutput=text # json is tested also\r\n```"},"comment":{"url":"https://api.github.com/repos/thumbor-community/aws/issues/comments/420934095","html_url":"https://github.com/thumbor-community/aws/issues/125#issuecomment-420934095","issue_url":"https://api.github.com/repos/thumbor-community/aws/issues/125","id":420934095,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDkzNDA5NQ==","user":{"login":"zj8487","id":5138447,"node_id":"MDQ6VXNlcjUxMzg0NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/5138447?v=4","gravatar_id":"","url":"https://api.github.com/users/zj8487","html_url":"https://github.com/zj8487","followers_url":"https://api.github.com/users/zj8487/followers","following_url":"https://api.github.com/users/zj8487/following{/other_user}","gists_url":"https://api.github.com/users/zj8487/gists{/gist_id}","starred_url":"https://api.github.com/users/zj8487/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zj8487/subscriptions","organizations_url":"https://api.github.com/users/zj8487/orgs","repos_url":"https://api.github.com/users/zj8487/repos","events_url":"https://api.github.com/users/zj8487/events{/privacy}","received_events_url":"https://api.github.com/users/zj8487/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T08:55:05Z","updated_at":"2018-09-13T08:55:05Z","author_association":"NONE","body":"change the botocore==1.8.1 to botocore==1.4.0 and it works\r\nBWT,   i use [minio](https://github.com/minio/minio) as the aws backend. "}}
{"actor":{"display_login":"zj8487"}}