-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Error: 140735127326720:error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac #4161
Comments
I began investigating this one. |
Ok, so it looks like the cleartext data is probably getting mixed with the underlying TLS exchange somehow (hence the protocol error). To verify this, if you wait until you see the |
/cc @indutny |
Will look into this tomorrow. |
Actually, I have a fix for it right now. |
Fix incorrect slicing of cleartext buffer in `TLSWrap::ClearOut`. Fix: nodejs#4161
Here you go #4184 . Thanks for figuring it out! |
Fixed! |
Fix incorrect slicing of cleartext buffer in `TLSWrap::ClearOut`. Fix: nodejs#4161 PR-URL: nodejs#4184 Reviewed-By: Brian White <mscdex@mscdex.net>
I recieved this today on my heroku server: The server is running node 7.10 |
@vongohren 7.x is unsupported. If you can, consider upgrading to 8.x (which will be supported until the end of 2019). No idea if this will fix your issue, but it's the first thing I'd try. |
Just received this on macOS Mojave running Node 8, please see details below: Error: 4571538880:error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac:../deps/openssl/openssl/ssl/s3_pkt.c:535: openssl version
OpenSSL 1.0.2l 25 May 2017 node --version
v8.15.1 |
@petermetz You are using openssl 1.0.2l, but node 8.15.1 uses openssl 1.0.2r. You should ensure that this isn't specific to your non-standard build. Also, the bug fixed here has been backported to 8.15.1, as far as I can see from a quick check, so you should report this as a different bug. It would help to have a reproduction. |
@sam-github @mscdex @silverwind @indutny @Trott
|
What version of Node.js are you running? |
Node version is 14, And in node js version 16 Error is
|
Sounds like a network/firewall/proxy problem. If you're on WiFi, maybe try moving to another network. |
But on network change this error |
Maybe try |
With latest master, I was trying to track down some flakiness in
test-tls-inception.js
, so I increased the data sent from the socket at theb
server like this:and got this error:
Reducing the size of the
Buffer
to3000
does not cause the error. Is this expected or a bug?Thanks
The text was updated successfully, but these errors were encountered: