Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/opt/python/iopipe/agent.py", line 152, in wrapped
- result = func(event, context)
- File "/opt/python/iopipe/handler.py", line 12, in wrapper
- return get_wrapped_handler()(event, context)
- File "/var/task/function.py", line 141, in handler
- i = d.read()
- File "/var/runtime/botocore/response.py", line 82, in read
- self._verify_content_length()
- File "/var/runtime/botocore/response.py", line 134, in _verify_content_length
- expected_bytes=int(self._content_length))
- botocore.exceptions.IncompleteReadError: 0 read, but total bytes expected is 36678.
- client = boto3.client('s3')
- get_json_file = client.get_object(
- Bucket=os.environ['S3_BUCKET'],
- Key="{0}".format(file_name),
- )
- d = get_json_file.get('Body')
- i = d.read()
- data = json.loads(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement