Thank you in advance to give me some time to read my problem and providing me elegant solutions.
My problem is: When I am trying to send my Submission in ODK Central REST Submission API then it is giving me 500 Internal Server Error. In server I use docker compose log service and I got error: payload string too long. When I am sending relatively small form then it is fine and working nicely.
My server has 4GB RAM and 40GB Disk Space. I have 20GB free space and only 1GB Ram is used.
Please help me to resolve my Issue so that I can send big forms. Please its an urgent matter to me. Please help.
I haven't calculated the exact size, but the form has 500 fields to fill out. That puts it over the limit. I was checking the function that limits the size.
Actually, everything starts with the webhook we deployed alongside Docker Central. This creates the function named audit.new_audit_log that listens and notifies.
My final question is whether it's possible to condition the new_audit_log function created for the webhook and condition the execution of the pg_notify function.
For example:
IF length(js::text) <= 8000 THEN
PERFORM pg_notify('odk-events', js::text);
END IF;