mkopylec / charon-spring-boot-starter

Reverse proxy implementation in form of a Spring Boot starter.
Apache License 2.0
240 stars 54 forks source link

Exceeded limit on max bytes to buffer : 262144 #127

Closed monstrfolk closed 1 year ago

monstrfolk commented 2 years ago

Error when using reverse proxy

org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144

There is a way to increase buffer size for webclient, for example...

WebClient.builder() .uriBuilderFactory(factory) .exchangeStrategies(ExchangeStrategies.builder().codecs( configurer -> configurer.defaultCodecs().maxInMemorySize(SIXTEEN_MB)).build()) .build();

How to do this using the WebClientConfigurer?

monstrfolk commented 2 years ago

@mkopylec any guidance would be helpful, thanks

monstrfolk commented 2 years ago

130