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

The websocket doesn't reconnect after the ECONNRESET error occurs #279

Open
yaohuiwu opened this issue Jul 24, 2024 · 0 comments
Open

The websocket doesn't reconnect after the ECONNRESET error occurs #279

yaohuiwu opened this issue Jul 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yaohuiwu
Copy link

the code that reproduces this issue or a replay of the bug

None

Describe the bug

Describe the bug
We are using the ChatGPT-Midjourney which uses your midjourney-api library.

After the service is started, the image can be generated, but after a period of time (half a day?), the image cannot be generated. After restarting the service, it returns to normal. This situation has occurred many times.

Check the log for ECONNRESET errors. After this error occurs, there is no heartbeat log.

Please check whether the reconnection logic takes into account the ECONNRESET situation.

Expected behavior
The websocket can reconnect when this error happens.

Screenshots
If applicable, add screenshots to help explain your problem.

error log

Error: Client network socket disconnected before secure TLS connection was established
at connResetException (node:internal/errors:720:14)
at TLSSocket.onConnectEnd (node:_tls_wrap:1714:19)
at TLSSocket.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'ECONNRESET',
path: undefined,
host: 'gateway.discord.gg',
port: 443,
localAddress: undefined
}

@yaohuiwu yaohuiwu added the bug Something isn't working label Jul 24, 2024
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