Error ingesting data: The received length exceeds the maximum allowed content length

ContentLengthExceededException: The received length exceeds the maximum allowed content length

The page sent from the OAI server is beyond the request body threshold defaults in the app (20Mb).

micronaut.http.client.max-content-length is the value that drives the max allowed content length.

There is a theoretical max for this value because Netty uses an integer but there may be scope to increase it.

To increase to 40Mb page size, set the environment variable in config:
MICRONAUT_HTTP_CLIENT_MAX_CONTENT_LENGTH=41943040

 

 

Operated as a Community Resource by the Open Library Foundation