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

Failed to upload large size file [OverflowError: long int too large to convert to int] #35

Open
featheast opened this issue Sep 15, 2014 · 0 comments

Comments

@featheast
Copy link

Really enjoy your lib which is very helpful, however, I have encountered issue, which to be honest not sure if it's actually caused by your lib since I'm not a Python dev, so please forgive my ignorance.

Basically the problem happens when I try to upload a file larger than a certain size 1.X GB, and the stacktrace will looks like this:

Traceback (most recent call last):
File "s3util.py", line 64, in
upload_resp = conn.upload('/live_archive/' + local_file_name, f, push_bucket_name)
File "/usr/local/lib/python2.6/dist-packages/tinys3/connection.py", line 152, in upload
return self.run(r)
File "/usr/local/lib/python2.6/dist-packages/tinys3/connection.py", line 233, in run
return self._handle_request(request)
File "/usr/local/lib/python2.6/dist-packages/tinys3/connection.py", line 255, in _handle_request
return request.run()
File "/usr/local/lib/python2.6/dist-packages/tinys3/request_factory.py", line 178, in run
auth=self.auth)
File "/usr/local/lib/python2.6/dist-packages/requests/api.py", line 99, in put
return request('put', url, data=data, *_kwargs)
File "/usr/local/lib/python2.6/dist-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, *_kwargs)
File "/usr/local/lib/python2.6/dist-packages/requests/sessions.py", line 416, in request
data = data or {},
OverflowError: long int too large to convert to int

Is it because I'm using your lib in a wrong way, or is it a limitation of python 2.6 or any other constraint of your lib?

Will be appreciate any help.
YD

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

1 participant