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

bad request errors not passed through #43

Open
amn41 opened this issue Aug 28, 2015 · 1 comment
Open

bad request errors not passed through #43

amn41 opened this issue Aug 28, 2015 · 1 comment

Comments

@amn41
Copy link

amn41 commented Aug 28, 2015

steps to reproduce:

run first example in the documentation with a non-existent bucket name, mismatching region name, or other incorrect specification. conn.upload() throws a stack trace :

   File "upload_to_s3.py", line 12, in <module>
    print(conn.upload(filename,f,bucketname))
  File "/path/connection.py", line 152, in upload
    return self.run(r)
  File "/path//connection.py", line 233, in run
    return self._handle_request(request)
  File "/path/connection.py", line 255, in _handle_request
    return request.run()
  File "/path/request_factory.py", line 180, in run
    r.raise_for_status()
  File "/path/models.py", line 851, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request

Either amazon is not throwing a more specific error message, or it is but it's not being passed along.

@VemityAI
Copy link

Same

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