-
Notifications
You must be signed in to change notification settings - Fork 117
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
Something went wrong with your AWS S3 Storage upload input stream operation - on some devices only #2408
Comments
@mercierj One reason could be that he doesn't have all the permission granted because upload using input stream creates a temp file before uploading to S3, so I would start by confirming that. If the issue is still not fixed, then we would need logs to investigate further. Also, a suggestion based on the code snippet you pasted, you can use uploadFile api directly if you are trying to upload a file. This will prevent redundant operation of converting file to inputstream and then again inputstream to temp file. |
Hi @sdhuka, thanks for your fast reply. The user has authorized : I used the uploadFile before but I switched to inputStream trying to solve his bug, with same result unfortunately. |
@mercierj In that case, yes, please add logs and we will investigate further. |
Hi @sdhuka |
@mercierj Thanks for finding the root cause, could you please paste the stacktrace here so we can look into fixing the issue? |
I don't have access to the device or stacktrace, I had to debug remotely through some alert dialogs unfortunately. |
Same issue got on file upload. After first failed attempt all next attempts fail with error:
|
I would like to second this problem, I have been getting this issue for a handful of uploads. |
I think it's related to System.currentTimeMillis used in the library. |
I encountered the same problem. When a test mobile phone opens the VPN, it enters the program, then disconnects the VPN, and then uploads the file again. This error occurs. Even so, the error occurs again with the VPN. Restart the app after recovery. fun upload(
} |
Before opening, please confirm:
Language and Async Model
Kotlin - Coroutines
Amplify Categories
Storage
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
Hi !
I'm using the coroutines koltin sdk for uploading files (images/ video).
Everything is working well on any devices tested on my side (physical & simulated), from any Android version (API 26 -> 33).
My client located in French Polynesia, with a samsung A13 (Android 13), using wifi with good internet connection is not able to upload any file.
He keeps getting "Something went wrong with your AWS S3 Storage upload input stream operation" right away.
The content is either from his gallery or by capture intents.
I'm using the same amplifyconfiguration.json on iOS & Android, and there is no bug on iOS side.
Since I'm not able to reproduce this on my side, I don't have any logs for now.
I would consider remote debuging but my client is not really available to help me with this task.
Do you have any hint on what could cause this bug ? maybe a location related issue ?
He is not using any simcard (but neither do I on my test devices).
I don't have access to the backend unfortunately.
Thanks for your help,
Regards
Reproduction steps (if applicable)
No response
Code Snippet
Log output
amplifyconfiguration.json
GraphQL Schema
Additional information and screenshots
The text was updated successfully, but these errors were encountered: