Background
When running large requests, sometimes you can receive the error:
Error while copying content to a stream: The stream ended prematurely.
For instance, when trying to load many transactions:
This can happen when you're running your Web Service in Azure, and the fix is straightforward.
Fix
You can add the following configuration to the Web Service Configuration:
,
{
"name": "LemonEdge__ControllerSettings__MaxOperationsPerChangeset",
"value": "100000",
"slotSetting": false
},
{
"name": "LemonEdge__ControllerSettings__MaxPartsPerBatch",
"value": "100000",
"slotSetting": false
},
{
"name": "LemonEdge__ControllerSettings__MaxReceivedMessageSize",
"value": "10000000",
"slotSetting": false
},
{
"name": "LemonEdge__ControllerSettings__SessionTimeoutSeconds",
"value": "36000",
"slotSetting": false
}
The Configuration for your Web Service looks like this in Azure:
After saving the config, the Web Service will restart, and you should no longer receive a timeout.
Comments
Please sign in to leave a comment.