Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Happen an error when Gateway is requested from 'boto' #96

Closed
yosukehara opened this issue Oct 31, 2013 · 1 comment
Closed

Happen an error when Gateway is requested from 'boto' #96

yosukehara opened this issue Oct 31, 2013 · 1 comment
Assignees
Milestone

Comments

@yosukehara
Copy link
Member

  • An error log is as the follows:
Traceback (most recent call last):
  File "boto_test.py", line 39, in <module>
    s3_object = bucket.get_key("kanetayusaku01.txt")
  File "/usr/lib/python2.6/site-packages/boto-2.9.0_dev-py2.6.egg/boto/s3/bucket.py", line 169, in get_key
    key, resp = self._get_key_internal(key_name, headers, query_args_l)
  File "/usr/lib/python2.6/site-packages/boto-2.9.0_dev-py2.6.egg/boto/s3/bucket.py", line 196, in _get_key_internal
    k.size = int(response.getheader('content-length'))
ValueError: invalid literal for int() with base 10: '0, 15'
  • Cause:
    • Reply incorrect 'content-length' (HTTP Header)
@ghost ghost assigned mocchira Nov 6, 2013
@mocchira
Copy link
Member

mocchira commented Nov 6, 2013

One solution.
Returning a empty function will make codes pass the below point.
https://github.com/extend/cowboy/blob/master/src/cowboy_req.erl#L957

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants