We have an app in which we are parsing text and images in a custom form.
A call is made from app.js, passing the contents of the form to a serverless function. This parses the data and creates an MS word document.
Initially, as part of the same serverless function, we would call the FD API to create a new note against a ticket, with the MS Word document as an attachment. However, we were coming up against frequent timeouts so decided to split the process into two:
- Call to serverless function to parse and generate Word doc => call to Render data to return buffer to app.js;
- Call to new serverless function, passing in the buffer, to create note with attachment.
The problem that we are now encountering is that we receive a ‘PayloadTooLargeError’ error on calling RenderData.
What is the maximum payload size for a call to Render data and can anyone suggest a way around this issue (either the payload size or the timeouts)