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

SSL Routines [wrong version number] #9522

Closed
takeshicamilo opened this issue May 6, 2023 · 4 comments
Closed

SSL Routines [wrong version number] #9522

takeshicamilo opened this issue May 6, 2023 · 4 comments

Comments

@takeshicamilo
Copy link

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
Copy link
Author

takeshicamilo commented May 6, 2023

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'
}

@kevinlul
Copy link

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'
}

@Qjuh
Copy link
Contributor

Qjuh commented Aug 27, 2023

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

@didinele
Copy link
Member

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 didinele closed this as not planned Won't fix, can't repro, duplicate, stale Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants