-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Reactive Rest client can not upload files bigger, than 2G #24405
Comments
When File is passed through multipart, the client fails with much more informative |
@michalszynkiewicz a lot of APIs out there allow to download files (typically the GitHub API). |
I'll have a look at the regular file upload part |
This is a message returned by the Server. You need to configure Quarkus with something like: |
Support large file uploads with Reactive REST Client
Fixes: quarkusio#24405 (cherry picked from commit 3d598f3)
quarkusio/quarkus#24402 quarkusio/quarkus#24405 quarkusio/quarkus#24415 quarkusio/quarkus#25028 Additionally: delete temporary files to speed up local execution
quarkusio/quarkus#24402 quarkusio/quarkus#24405 quarkusio/quarkus#24415 quarkusio/quarkus#25028 Additionally: delete temporary files to speed up local execution
quarkusio/quarkus#24402 quarkusio/quarkus#24405 quarkusio/quarkus#24415 quarkusio/quarkus#25028 Additionally: delete temporary files to speed up local execution
quarkusio/quarkus#24402 quarkusio/quarkus#24405 quarkusio/quarkus#24415 quarkusio/quarkus#25028 Additionally: delete temporary files to speed up local execution
quarkusio/quarkus#24402 quarkusio/quarkus#24405 quarkusio/quarkus#24415 quarkusio/quarkus#25028 Additionally: delete temporary files to speed up local execution
quarkusio/quarkus#24402 quarkusio/quarkus#24405 quarkusio/quarkus#24415 quarkusio/quarkus#25028 Additionally: delete temporary files to speed up local execution (cherry picked from commit 565a6fd)
quarkusio/quarkus#24402 quarkusio/quarkus#24405 quarkusio/quarkus#24415 quarkusio/quarkus#25028 Additionally: delete temporary files to speed up local execution (cherry picked from commit 565a6fd)
quarkusio/quarkus#24402 quarkusio/quarkus#24405 quarkusio/quarkus#24415 quarkusio/quarkus#25028 Additionally: delete temporary files to speed up local execution (cherry picked from commit 565a6fd)
Describe the bug
Quarkus Rest Reactive client fails with OutOfMemory error when uploading files bigger than 2G.
Expected behavior
Reactive client should be able to process files of any size.
Actual behavior
Sending fails with
HTTP Request to /client-wrapper/upload-file failed, error id: 6fdd4d92-5bb6-49df-bd70-c5e3671bbad3-1: java.lang.OutOfMemoryError
How to Reproduce?
git clone [email protected]:fedinskiy/quarkus-test-suite.git -b reproducer/reactive-rest-client
cd quarkus-test-suite/http/rest-client-reactive
mvn clean verify -Dit.test=FileIT#uploadFile
Output of
uname -a
orver
5.16.13-200.fc35.x86_64
Output of
java -version
11.0.12, vendor: GraalVM Community
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.4.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Additional information
See also #24402 for the same error on downloading.
The text was updated successfully, but these errors were encountered: