Skip to content

SocketError: other side closed #148

@SwimmingLiu

Description

@SwimmingLiu

Any guys encounterd this error?

env

  • os : macbook
  • tool: claude code
  • run_shell: npx copilot-api@latest start --claude-code --proxy-env --rate-limit 180 --wait

error info

TypeError: terminated
    at Fetch.onAborted (node:internal/deps/undici/undici:11736:53)
    at Fetch.emit (node:events:508:28)
    at Fetch.terminate (node:internal/deps/undici/undici:10895:14)
    at Object.onError (node:internal/deps/undici/undici:11858:38)
    at Request.onError (/Users/swimmingliu/.npm/_npx/b3c0db1118356182/node_modules/undici/lib/core/request.js:316:27)
    at Object.errorRequest (/Users/swimmingliu/.npm/_npx/b3c0db1118356182/node_modules/undici/lib/core/util.js:800:13)
    at TLSSocket.onHttpSocketClose (/Users/swimmingliu/.npm/_npx/b3c0db1118356182/node_modules/undici/lib/dispatcher/client-h1.js:941:10)
    at TLSSocket.emit (node:events:520:35)
    at node:net:346:12
    at Socket.done (node:_tls_wrap:649:7) {
  [cause]: SocketError: other side closed
      at TLSSocket.onHttpSocketEnd (/Users/swimmingliu/.npm/_npx/b3c0db1118356182/node_modules/undici/lib/dispatcher/client-h1.js:904:22)
      at TLSSocket.emit (node:events:520:35)
      at endReadableNT (node:internal/streams/readable:1701:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    code: 'UND_ERR_SOCKET',
    socket: {
      localAddress: '127.0.0.1',
      localPort: 56985,
      remoteAddress: '127.0.0.1',
      remotePort: 7897,
      remoteFamily: 'IPv4',
      timeout: undefined,
      bytesWritten: 98457,
      bytesRead: 4075
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions