Skip to content

Commit

Permalink
Support huge JSON data
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolovison committed Feb 25, 2025
1 parent d437b36 commit 50ad5cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions horreum-backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,5 @@ quarkus.elasticsearch.devservices.enabled=false

quarkus.transaction-manager.default-transaction-timeout=1h
quarkus.arc.fail-on-intercepted-private-method=false

quarkus.http.limits.max-body-size=300M
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ public HorreumClient build() throws IllegalStateException {
// Other MessageBodyReaders/Writers that may not be found by ServiceLoader mechanism
clientBuilder.register(new StringTextStar());
clientBuilder.register(new DefaultTextPlain());

// Fix for: RESTEASY003292: Stream is closed
System.setProperty("org.jboss.resteasy.client.jaxrs.engines.fileUploadInMemoryThreshold", "100");
ResteasyClient client = clientBuilder.build();
ResteasyWebTarget target = client.target(horreumUrl);

Expand Down

0 comments on commit 50ad5cd

Please sign in to comment.