Closed phpb-com closed 2 years ago
https://github.com/truecharts/apps/blob/7d37a9d212d8498b564642d826156f226fb55272/charts/incubator/nocodb/questions.yaml#L176 this should be set to string to allow for the correct configuration. Help should also be update to tell what units (Kb,KiB,Mb,Mib,Bytes,etc) are used and allow user to use units in the entry. See: https://expressjs.com/en/resources/middleware/body-parser.html#limit and https://docs.nocodb.com/getting-started/installation/
I've set it to int because it defaults to an int number based on their installation docs
But I'm aware it's not working currently because of the request limit.
If you click through the limits link, you will see that the entry is passed to https://www.npmjs.com/package/bytes which parses declaration with units. The nocodb doc does not explicitly state that it must be int, it has default that is a number. If it is int, it is likely to be converted into a scientific notation that is not parsed by the above-mentioned lib.
If you click through the limits link, you will see that the entry is passed to https://www.npmjs.com/package/bytes which parses declaration with units. The nocodb doc does not explicitly state that it must be int, it has default that is a number. If it is int, it is likely to be converted into a scientific notation that is not parsed by the above-mentioned lib.
I'll change it to string and default it to 1mb ( which is the 1048576 bytes they default). Also strings can be left empty and then the default of the docker image is used As for the "help" popup, I'm just copying whatever the upstream dev has in his docs
Thank you, @stavros-k ! Really appreciate your work on this :-)
After the PR is merged, and you still have problems, create a support ticket on discord and tag me, for more direct chat ;)
Absolutely, thanks for a quick follow-up and fix. I'll try it again once the PR is merged. Thank you!
This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists
App Name
nocodb
SCALE Version
22.02.0
App Version
0.90.3_0.0.4
Application Events
Application Logs
Application Configuration
All set to default except for the body size.
Describe the bug
When trying to login or submit any sort of html body via post, you get an error that the "request entity too large". Investigating further, it seems that one configuration ENV variable is not set correctly - NC_REQUEST_BODY_SIZE=5.24288e+06 . Note that the entry in the app config is set to 5MiB (Request Body Size : 5242880). According to the nocodb config, this environment variable should be set to a number of bytes or literal 100Kb, etc (which config form will not accept, only integers allowed). It works if it is set to a small integer, like 5kb (spelled in bytes).
To Reproduce
Expected Behavior
I am supposed to be able to submit entries larger than 5 bytes. I am also supposed to be able to set request body size to a more significant numbers, multiple of GiB.
Screenshots
none
Additional Context
none
I've read and agree with the following