How to disable max-content-length check for http client for particular API call ? #7499
Unanswered
vasanthegde
asked this question in
Q&A
Replies: 1 comment 6 replies
-
i don't think there's a way to increase the limit, but you can use a streaming response (eg dataStream) to disable it |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I am making HEAD call to an api, I am seeing
io.micronaut.http.client.exceptions.ContentLengthExceededException
by deafult micronaut.http.client.max-content-length = 10MB
since this is int type and max value we can set to it is 2147483647 ( ie 2GB)
the API I am calling is for streaming file storage and these file size can be bigger than 2GB, in that how do I overcome this exception ?
is there anyway to increase it to beyond 2GB or disable it altogether ? any help would be appreciated.
client version : micronaut-http-client-core:3.4.4
Beta Was this translation helpful? Give feedback.
All reactions