Connection Reset by Peer in Function App

Nikhil Dua 0 Reputation points
2024-04-23T21:26:41.07+00:00

Cross posting from here:

  • Operating System: Linux
  • Python Version: 3.9

Describe the bug Hi there! Not sure if this is directly related to Python or Function app issue. We have a function app that is running on Azure located here: https://observeinc.s3.us-west-2.amazonaws.com/azure/azure-collection-functions-0.11.0.zip

About 5-10% of the invocations, we see a "Connection Reset by Peer" issue and unsure how to resolve it. We're also not sure if its detrimental if this causes the function worker to crash, as the function app is responsible for sending data externally and we don't want data to get dropped if this error is seen.

To Reproduce

  1. Run Function App for a while to collection invocations

Expected behavior Error should not occur

  • Operating System: Linux
  • Python Version: 3.9

Describe the bug
Hi there! Not sure if this is directly related to Python or Function app issue. We have a function app that is running on Azure located here: https://observeinc.s3.us-west-2.amazonaws.com/azure/azure-collection-functions-0.11.0.zip

About 5-10% of the invocations, we see a "Connection Reset by Peer" issue and unsure how to resolve it. We're also not sure if its detrimental if this causes the function worker to crash, as the function app is responsible for sending data externally and we don't want data to get dropped if this error is seen.

To Reproduce

  1. Run Function App for a while to collection invocations

Screenshot 2024-04-23 at 11 31 59 AM

Error

Full Exception :
 Microsoft.Azure.WebJobs.Script.Workers.WorkerProcessExitException : python exited with code 255 (0xFF) 
 System.Exception : urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')),    raise ConnectionError(err, request=request),requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))    End of inner exception

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,363 questions
{count} votes