简体   繁体   中英

Discord.JS TLS errors

I have been working on a bot for some time now. Since I updated it to v15.5.0, after a while it works fine, does exactly what I want but then crashes, giving the following error. This seems to be a TLS issue.

Error: Client network socket disconnected before secure TLS connection was established
    at connResetException (node:internal/errors:631:14)
    at TLSSocket.onConnectEnd (node:_tls_wrap:1565:19)
    at TLSSocket.emit (node:events:388:22)
    at endReadableNT (node:internal/streams/readable:1305:12)
    at processTicksAndRejections (node:internal/process/task_queues:80:21)

The source code for the bot is here

Will I have to downgrade? If so, to what version of node?

I'm using this on a Windows 10 64bit computer with no proxy settings whatsoever.

This is not related to Node.js v15, but it seems like it is an issue on your end (with your connection, or your computer). this question may help you to resolve your issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM