discord.js icon indicating copy to clipboard operation
discord.js copied to clipboard

SSL Routines [wrong version number]

Open takeshicamilo opened this issue 1 year ago • 1 comments

Which package is this bug report for?

discord.js

Issue description

My bot its basically a music player multi tool Steps to reproduce the error: It happen randomly and it can appear 2 minutes after start my bot, sometimes it can happen when I play music in another channel but the most of the time works good

image

Code sample

No response

Versions

  • discordjs lastest version
  • node 20

Issue priority

Low (slightly annoying)

Which partials do you have configured?

Not applicable

Which gateway intents are you subscribing to?

Not applicable

I have tested this issue on a development release

No response

takeshicamilo avatar May 06 '23 03:05 takeshicamilo

node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: 40A8EFD0F17F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:358:
] {
  library: 'SSL routines',
  reason: 'wrong version number',
  code: 'ERR_SSL_WRONG_VERSION_NUMBER'
}

takeshicamilo avatar May 06 '23 03:05 takeshicamilo

I recommend adding an event handler on the bot client's "error" event to log these so they don't propagate and crash your process. I think these are probably issues when communicating with Discord as ours gets this sometimes as well. Last example from July 16:

[Error: C037A0F7997F0000:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1586:SSL alert number 40
] {
  library: 'SSL routines',
  reason: 'sslv3 alert handshake failure',
  code: 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE'
}

kevinlul avatar Aug 15 '23 23:08 kevinlul

What source do you try to play audio from? Does this happen with local files too or just when streaming from somewhere else?

Qjuh avatar Aug 27 '23 14:08 Qjuh

Considering the lack of response to the above and of concrete repro steps (not to mention this is likely an I/O thing), I'll be closing this. Feel free to re-open if it re-occurs and you have more information.

didinele avatar Jan 22 '24 09:01 didinele