-
Notifications
You must be signed in to change notification settings - Fork 49
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
IO Exception when listing s3 objects in bucket #1214
Comments
Hello, I created a new Micronaut project (version 4.3.1) and tested the behavior again. It still fails occasionally with the same error. However, in the fresh application it only needs 2 attempts instead of 6. I can't explain why exactly as the dependencies and the setup are the same in my opinion. Don't know if it is worth it to look into it. |
|
Hi, thanks for the report! I've set up a local application using Micronaut, but I can't replicate this behavior. Can you please configure |
Hello, sorry for the late response. Here the requested logs :) Like always after the sixth request it somehow gets trough. However, like mentioned before it does not happen a lot. Every 20 request or so.
|
Describe the bug
When executing below code it randomly happens that the call to s3 fails with an IO Exception (exception is inserted below). I cannot put a precise number on it but I guess this happens once every 20 request or so. It can be "fixed" when the attempts are upped to more than 5. Because when this happens it failes always exactly 5 times with the 6th attempt going trough somehow.
I cannot explain why this occurs and why it always fails 5 times with the 6th attempt going trough.
with this factory
the resulting exception
Expected behavior
Not failing randomly exactly 5 times when this error occurs.
Current behavior
Like explained before the error which is thrown.
Here with more attempts set going trough
Steps to Reproduce
The framework in use is Micronaut in the version 4.2.2 . The s3 bucket itself has several objects in it and returns with the prefix key 10 elements.
The code was started locally via Gradle (version 8.4) and invoked over the micronaut controoler via Postman. Note that the same behavior is present in the cloud environment.
with this factory
with these build.gradle.kts file
Possible Solution
No response
Context
I want to show the user the s3 objects which the user has saved in the cloud via a web app. However at some point the request fails randomly (locally and in the cloud).
AWS Kotlin SDK version used
1.0.54
Platform (JVM/JS/Native)
Java 21.0.2 with gradle 8.4
Operating System and version
Windows 10 Pro
The text was updated successfully, but these errors were encountered: