Skip to content

[Bug] Socket hang up (ECONNRESET) during deployment requests #116

@ijusttookadnatest

Description

@ijusttookadnatest

"Socket hang up" (ECONNRESET) error during deployment requests

Description

When making deployment requests (especially longer ones), a ECONNRESET error occurs, but the operation still completes successfully after a delay.

Error logs

[Nest] 290757  - 04/02/2025, 5:52:44 PM   DEBUG [AgentService] Object(2) {
  message: 'Processing agent request',
  request: 'deploy erc20 name yo symbol yo supply 1000'
}
Failed to proxy http://localhost:3001/api/key/request [Error: socket hang up] { code: 'ECONNRESET' }
[Error: socket hang up] { code: 'ECONNRESET' }
[Nest] 290757  - 04/02/2025, 5:53:15 PM   DEBUG [AgentService] Object(2) {
  message: 'Agent request processed successfully',
  result: 'Great! Your ERC20 token has been successfully deployed...'

Observed behavior

  1. Deployment request starts
  2. socket hang up error with ECONNRESET code appears
  3. Operation still completes successfully after ~30 seconds

Expected behavior

Request should complete without connection errors while maintaining client-server communication.

Possible causes

Connection timeout during long-running requests. The proxy server or client closes the connection before the operation completes.

Suggested fixes

  • Increase proxy connection timeout
  • Implement automatic reconnection
  • Use asynchronous notification for long operations
  • Check proxy and client keepalive settings

Priority

Medium - System works despite errors, but user experience is impacted by error messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions