中间件(17) : 神禹API网关[6]-修改响应结果数据量限制

参考 : 

        spring boot 中出现DataBufferLimitException: Exceeded limit on max bytes to buffer :262144_我真的不吃辣条的博客-CSDN博客 https://blog.csdn.net/nklinsirui/article/details/106949002

 https://blog.csdn.net/yu542771572/article/details/127414093

shenyu-bootstarp修改配置

# 神禹接口响应数据大小配置, MB
shenyu.httpclient.maxInMemorySize=2000
# spring接口响应数据大小配置, 单位Byte, 2097152000=2000M
spring.codec.max-in-memory-size=2097152000

注 : 需要同时配置

错误日志

2022-11-09 13:22:33 [reactor-http-kqueue-8] ERROR org.apache.shenyu.plugin.httpclient.AbstractHttpClientPlugin - Exceeded limit on max bytes to buffer : 1048576

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

at org.springframework.core.io.buffer.LimitedDataBufferList.raiseLimitException(LimitedDataBufferList.java:99)

Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:

Error has been observed at the following site(s):

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值