You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error occurs when the client makes a plain HTTP request instead of an HTTPS (HTTP over SSL/TLS) request. In other words, Node.js aborts the connection because the client is not using SSL/TLS for the request, i.e., is using http://localhost:3000/ instead of https://localhost:3000/.
To accept HTTPS requests, you will need to supply a certificate to createServer.
Hope the answer was helpful.
A workaround/resolution has been provided so I am closing this issue.
Please feel free to reopen this issue if there is more to be added.
Version
10.0.0 - 17.0.0
Platform
Linux 46aea4d126eb 5.11.0-1020-gcp #22~20.04.1-Ubuntu SMP Tue Sep 21 10:54:26 UTC 2021 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
create an https server, listen, And request the server
reproducible code:
How often does it reproduce? Is there a required condition?
every time
What is the expected behavior?
emit the request event, respond accordingly, and move on
What do you see instead?
an openssl error from the 'clientError' event
Additional information
No response
The text was updated successfully, but these errors were encountered: