-
Notifications
You must be signed in to change notification settings - Fork 183
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
Nothing to write: null body - when using Flux<ByteBuffer> and S3CrtAsyncClient #1182
Comments
The only thing I really had to fix was that the S3Client must use "path style access" with S3Mock. The default subdomain style access does not work locally because localhost is a special domain. I have yet to come up with a solution to make this work. See campidelli/file-storage-service#1 See #144 |
Wow! Many thanks @afranken that was brilliant, your level of commitment is outstanding! It is working perfectly now! Have a great day sir! |
Hey, sorry (again). I noticed a difference between the uploaded file and the original one:
And when I tried to open the uploaded PDF, it doesn't work, it says it is corrupted. I added a new test to check that. |
found the problem. Seems like the CRT client automatically sends a checksum to S3. When running a test with the CRT client, our sample file:
See #1123 The workaround is to disable checksum validation when using S3Mock: |
Amazing thanks a lot! I think it is worth to add this to the README file so people can be aware. Have a great day! |
Hi, me again.
In my application, I am using Spring WebFlux for the asynchronous APIs (https://github.com/campidelli/file-storage-service/blob/main/src/main/java/campidelli/file/storage/controller/AsyncFileStorageController.java) and it works well when I am using a real S3 bucket.
However, when I use S3Mock, it seems that no data is getting to the container as the following log show:
What am I missing? I think now it is easy to reproduce it there, you only need to execute https://github.com/campidelli/file-storage-service/blob/main/src/test/java/campidelli/file/storage/FileStorageApplicationTests.java
Another tip I would like to receive is: how can I enable the container to write to an actual folder on my host? I have tried to use
withEnv("root", "/Users/campidelli/temp")
but it times out.Many thanks!
The text was updated successfully, but these errors were encountered: