Closed 18601673727 closed 2 years ago
I'm not experiencing the same but I do not have max_body_size
specified in my config. One thing I noticed is that this value is configured at the configuration server block (not the queue block). If the value is null the default value is 1024B which is exceeded by the request you have pasted above (1.2Kb). First I would enable debug logging to ensure the value is being parsed:
https://github.com/davechallis/ocypod/blob/master/src/bin/ocypod-server.rs#L60
If not try providing the value at the server block instead:
[server]
max_body_size = "32MiB"
Yup, @joe-at-startupmedia is correct, that setting is applied globally for all queues, and is set in the [server]
section of the config.
It gets ignored when added to a specific queue's configuration (but might not be a bad idea to log a warning about that in future).
Thank you @joe-at-startupmedia @davechallis , put max_body_size
under server
section works!
Before I upgraded docker image of ocypod, using following configuration
everything went well, but after, giving an output payload like this:
It will return 413, instead of 204.
Anybody experiencing the same?