Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception: read ECONNRESET #477

Closed
Sadzurami opened this issue Mar 6, 2024 · 2 comments
Closed

Uncaught exception: read ECONNRESET #477

Sadzurami opened this issue Mar 6, 2024 · 2 comments
Labels

Comments

@Sadzurami
Copy link
Contributor

Sadzurami commented Mar 6, 2024

Describe the bug

After emitting error event with read ECONNRESET at

this.user.emit('error', err);
sometimes i get same uncaught exception.

This happens when proxy experience temporary outage.

When SteamUser emits 'error' event, i call logOff method (to be sure, that SteamUser instance is stopped).
Note: I'm not use auto-reconnect and manage reconnecting by myself.

Versions

5.0.8 (but it happens on earlier versions too)

Screenshots and Error Logs

error timestamp 1709395946535

Error: Bot error
    at Bot.<anonymous> (C:\project\dist\core\core.service.js)
    at Bot.emit (node:events:537:28)
    at SteamUser.<anonymous> (C:\project\dist\core\bot.js)
    at SteamUser.emit (node:events:549:35)
    at ClientRequest.<anonymous> (C:\project\node_modules\steam-user\components\connection_protocols\tcp.js:87:15)
    at ClientRequest.emit (node:events:537:28)
    at Socket.socketErrorListener (node:_http_client:465:9)
    at Socket.emit (node:events:537:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
caused by: Error: read ECONNRESET
    at SteamUser.<anonymous> (C:\project\dist\core\bot.js)
    at SteamUser.emit (node:events:549:35)
    at ClientRequest.<anonymous> (C:\project\node_modules\steam-user\components\connection_protocols\tcp.js:87:15)
    at ClientRequest.emit (node:events:537:28)
    at Socket.socketErrorListener (node:_http_client:465:9)
    at Socket.emit (node:events:537:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

error timestamp 1709395946535 (same as previous, so it happens right after previous handled error)

Error: Uncaught exception
    at process.<anonymous> (C:\project\dist\app.service.js)
    at process.emit (node:events:537:28)
    at process.processEmit [as emit] (C:\project\node_modules\signal-exit\index.js:199:34)
    at process._fatalException (node:internal/process/execution:167:25)
caused by: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
@Sadzurami Sadzurami added the bug label Mar 6, 2024
@mdf45
Copy link

mdf45 commented Apr 17, 2024

Same problem..
Any solutions?

@DoctorMcKay
Copy link
Owner

Should be fixed in 5.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants