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
Upload files to S3 fails #94
Comments
Thanks for the very detailed report. I've seen a few reports recently, but I couldn't reproduce it. I'll try it on Android 5.0.2 (Moto G 2) and get back to you ASAP. BTW, is your device behind a firewall? |
Thank you @fosterzhang ...No firewall here. Let me know if you need any other information or log. Cheers. |
Any update on this issue ? I am seeing the same issue. |
#95 is a duplicate of this issue on "aws-sdk version 2.2.11 on a Nexus 4 with Android 5.1.1 without any firewall. And the S3 bucket is in the eu-west-1 region." |
I also experienced this issue. I'm trying to figure out how to reproduce it. In the meantime, maybe my anecdote will help:
|
I had the same issue (same logcat print out), it only occurred on one of my devices (running Android 5.1) and not on the device running 4.3. I was originally using a dependency for AWS SDK 2.+ with the us-east-1 S3 region as well and I changed it to 2.2.11 with no effect. I wiped and reset the 5.1 device eventually and the problem stopped, quite bizarre, I'll be interested to understand what was happening if anyone finds out. -Cheers |
@devgutt Sorry for the late reply. I am having trouble in reproducing the exact problem. Thanks to the fragmentation of Android devices, it's hard to get the exact same device, either a Nexus 4 running Android 5.1.1 or a Moto G 2nd gen running 5.0.2. I'll keep bugging people for those two devices. |
@devgutt Sorry that I still don't have an answer. I did test the sample on several devices except the device you mentioned, but I couldn't reproduce the issue. To narrow it down:
|
Any update guys? I need a reliable way to reproduce the issue. PS: I don't have Nexus 4. |
Sorry the late reply, I will try to upload with putObject this week and return to you shortly. |
I'm seeing this issue happen fairly consistently, but there's no way to truly trigger the behaviour. This is what happens in the log:
To trigger this, I launch |
@eviljames It's
|
I don't think this is the problem. If I upload a small file before anything else, this problem will never occur. |
@fosterzhang Thanks for the feedback. I'll increase the Socket Timeout to 30, however this happens irrespective of the network I'm on. Across the Canadian mobile providers, and every Wi-Fi network I've tested on. |
@devgutt This thread is mixed with different issues.
@eviljames 30 seconds or 30 milliseconds? ClientConfiguration.setSocketTimeout takes number in milliseconds. Network is a vague term. I can be bad cellular or WiFi. It can also be that the S3 bucket is too far away from you, say accessing Frankfurt from Canada. |
Hey @fosterzhang, I updated the sdk to the version 2.2.13 and the issue seems to be solved. I could drop my workaround as well. I noticed that another problem which occurs intermittently (the TransferObserver didn't fire on COMPLETE, just IN_PROGRESS) also was corrected. I will make more tests and report if I find something else. Thanks! |
Unable to execute HTTP request: Read timed out frequently i am getting this error when ever i tried to upload files to s3. |
@vishnuganta22 Socket timeout is a different issue. A few things you can do:
|
I'll close this issue, as the original problem is resolved. Please open a new issue if other problems occur. |
For me the problem was that my S3 was configured for US region, but when uploading I specified EU ( The device was Google Nexus 7 with Android 4.4 and I was getting the exact same error. |
still getting this error. Any pointer for this
code:
|
still facing this issue in compile 'com.amazonaws:aws-android-sdk-s3:2.6.3' I need to upload a small file before uploading a file greater than 200kb, any help on this issue is much appreciated |
getting TrasferObserver state as progess and then failed |
Anything new? I am getting the same error EDIT: |
When I upload a file bigger than 200kb for the first time, using TransferUtility, I received the follow error, and the file fails to upload.
But If I try to upload a file smaller than 200kb, the upload works just fine. The upload also works if I START to upload using the smaller file and than upload the bigger ones.
I'm using AWS SDK 2.2.11 and I tested and found this same behavior in the android sample (https://github.com/awslabs/aws-sdk-android-samples - S3TransferUtilitySample).
This is happening ONLY on my device running Android 5.0.2 (Moto G 2).
I tested in other devices and emulators, but didn't find any error on those:
I tried to change the timeout and the protocol (https and http), but didn't work either.
I did all the tests on Wi-Fi (internet very stable).
The location of the bucket seems irrelevant, because the upload works, if I don't upload the first file bigger than 200kb.
As workaround, I'm uploading a 1kb file, prior any upload, but it's obviously not the correct solution:
Any help would be really appreciated.
The text was updated successfully, but these errors were encountered: