Bad Request when submitting JSON to create a PDF

Every time that I submit a post request with a large JSON string and the request takes longer than two minutes a 502 Bad Gateway response is generated.

Hi @septem

The reason for the issue could be the following:

If you use this approach then it's not intended for long running operations. It times out by design for long operations.

If you have long running operations use Jobs, as described here.
It allows to start a job and then use a separate method to check the results.

Best regards,
Plumsail team

I've tried using the suggested method, but then the following error happened:

{"code":"System.IndexOutOfRangeException","message":"Index was outside the bounds of the array.","date":"2022-08-29T15:42:51.4547482Z"}