Skip to content

Proxy error retry #13

Description

@say1j

Hey, sometimes proxy can throw code 'ECONNRESET' on connection and login or other functions crashing.
Is there any way to add support for the number of retries for these errors for steam-session and steamcommunity? It's not really right to add a check to every function since these are repetitions and the code will be huge and unreadable.

Exapmles of thrown errors because of that:

Error: Proxy CONNECT 403 Forbidden
at ClientRequest. (/root/asd/node_modules/@doctormckay/stdlib/components/http/proxyagent.js:54:14)
at ClientRequest.emit (events.js:400:28)
at ClientRequest.emit (domain.js:475:12)
at Socket.socketOnData (_http_client.js:553:11)
at Socket.emit (events.js:400:28)
at Socket.emit (domain.js:475:12)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9)
at Socket.Readable.push (internal/streams/readable.js:206:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)

Error: tunneling socket could not be established, statusCode=403
at ClientRequest.onConnect (/root/asd/node_modules/tunnel-agent/index.js:166:19)
at Object.onceWrapper (events.js:520:26)
at ClientRequest.emit (events.js:400:28)
at ClientRequest.emit (domain.js:475:12)
at Socket.socketOnData (_http_client.js:553:11)
at Socket.emit (events.js:400:28)
at Socket.emit (domain.js:475:12)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9)
at Socket.Readable.push (internal/streams/readable.js:206:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23) {
code: 'ECONNRESET'
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions