scalaone/azure-openai-proxy

Intermittent 'ECONNRESET' Errors

blrchen opened this issue · 0 comments

Reviewing the past month's log in my deployment, I've noticed intermittent occurrences of "Error in getCompletions: Error: read ECONNRESET" from client apps. This error typically arises when the connection between the proxy and the Azure OpenAI server unexpectedly closes during request processing. The "ECONNRESET" message signifies that the server abruptly closed the connection.

To address this, the code should be enhanced to handle such situations appropriately. This could involve adding a retry mechanism for network issues or implementing a timeout.