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

Socket emits error after closing when autorestart: true #3

Open
Cassolette opened this issue Feb 18, 2022 · 0 comments
Open

Socket emits error after closing when autorestart: true #3

Cassolette opened this issue Feb 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Cassolette
Copy link
Collaborator

app.client.on("connectionError", (err) => {
        app.error("Connection err", err);
        //process.exit(1);
    });

    app.client.on("restart", () => {
        app.error("rest");
    })

autorestart: true

  ERROR Connection err 
 Error  read ECONNRESET
details:
{
  errno: -4077,
  code: 'ECONNRESET',
  syscall: 'read'
}
error stack:
• stream_base_commons:220 onStreamRead
    node:internal\stream_base_commons:220:20


  INFO  [] restarting!
log stack:

• DbgLogging.js:56 <anonymous>
    dist\modules\DbgLogging.js:56:29

• node:events:402 emit
    node:events:402:35

• Client.js:233 <anonymous>
    transformice.js\dist\client\Client.js:233:18

• Client.js:8 <anonymous>
    transformice.js\dist\client\Client.js:8:71

2022-02-18 02:15:53.325  ERROR rest
node:events:368
      throw er; // Unhandled 'error' event
      ^
Emitted 'error' event on Connection instance at:
    at Socket.<anonymous> (transformice.js\dist\utils\Connection.js:57:18)    at Object.onceWrapper (node:events:510:26)
    at Socket.emit (node:events:390:28)
    at TCP.<anonymous> (node:net:687:12)
@Cassolette Cassolette added the bug Something isn't working label Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant