Hello,
I'm facing a peculiar issue with the m3api-rest v2 bulk API returning a status 504 error.
I'm trying to perform a bulk request with 40 transactions of OIS100MI/AddLineBatchEnt.
It returns the following error after 5 mins of processing - "Request aborted after target server failed to respond within the configured timeout of 300000 milliseconds (actual 300001)".
1) If I try with a smaller batch of 20 transactions, it completes processing in around 3 minutes. The bulk API usually processes a bigger number of requests in less time. Is this an issue with the OIS100MI/AddLineBatchEnt API?
2) Is there a way to increase this gateway timeout period for this bulk API?
I have attached my sample JSON request below. Thanks!

Request Body:
{
"program": "OIS100MI",
"cono": 780,
"divi": "",
"excludeEmptyValues": false,
"maxReturnedRecords": 0,
"transactions": [
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] },
{ "transaction": "AddLineBatchEnt", "record": { "CONO": 780, "ORNO": "0010000522", "ORQT": "1", "ITNO": "BAG001", "WHLO": "500", "LTYP": 0 }, "selectedColumns": ["PONR"] }
]
}