Apigee On-Premise issue: ASYNC_EXCEPTION: Connection reset by peer

Not applicable

We have created an API proxy to upload Blob files to Azure storage account.

Internal Apigee on-premise installation is not open for external cloud APIs, so for this requirement, we have configured proxy at Apigee installation to invoke external Azure call. There is no any timeout setting at Prox level.

As per Azure doc(https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob), Backend azure API support 256MB file upload, But in Apigee whenever we are uploading a file of size greater than 80MB, It is failing with error "error.cause.cause: ASYNC_EXCEPTION: Connection reset by peer". Files less than 70MB are getting uploaded successfully.

When we are calling Azure API directly from internal network using NodeJs, It is working as expected.

We have increased timeout setting at Apigee router level(https://docs.apigee.com/private-cloud/latest/configuring-router-retry-connections-message-processor), In Target Endpoint properties(https://docs.apigee.com/api-services/reference/endpoint-properties-reference) and At Azure side(https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operatio...), Still, it is giving the same error, So probably this issue is at Apigee infrastructure(somewhere after specific time connection is reset).

0 3 1,026
3 REPLIES 3

Not applicable

Have you enabled streaming in Apigee Edge? Please look at the documentation to enable streaming in request/response : https://docs.apigee.com/api-services/content/enabling-streaming

if you are handling such large requests through apigee edge, there is a chance of buffer overrun or connection reset because of timeout settings.

@Sean Davis could you help here