nacos API push of 2mb file failed

vzgqcmou  于 5个月前  发布在  Nacos
关注(0)|答案(5)|浏览(98)

Describe the bug

Using only Go language to push configurations greater than 2mb directly fails

Desktop (please complete the following information):

  • Version: nacos-server 1.3.2
vs3odd8k

vs3odd8k1#


I tested the official demo and found the same issue. Does nacos not support large file push

n53p2ov0

n53p2ov02#

Http post size has limited for default by tomcat. If you want to support large file. Please set relative config in application.properties, such as server.tomcat.max-swallow-size=-1 .

But this is not suggested. It is suggested to split config to muiltple configs.

o2rvlv0m

o2rvlv0m3#

application.properties:

server.tomcat.max-http-form-post-size=-1
server.tomcat.max-swallow-size=-1

qvtsj1bj

qvtsj1bj4#

设置了两个参数,但是目前看通过api和web都是不支持的

brtdzjyr

brtdzjyr5#

erties, such as server.tomcat.max-swallow-size=-1 .

这个和版本有关系么,我这用的版本比较老1.3.2,我看naocs 1.3.2 的springboot里面是2.1.1的,这参数是2.3.3 支持的,和这个有关系么

相关问题