Error: write EPROTO 34557064:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:../../third_party/boringssl/src/ssl/tls_record.cc:242:
Javascriptnode.jsApiJavascript Problem Overview
The issue was that I was trying to POST to https when that API actually only supports HTTP. Just leave this as a note for other folks who might run into the same issue.
Any Help can be appreciated
Javascript Solutions
Solution 1 - Javascript
This type of issue comes when you use https instead of http. Change the URL to use http.
Example: https://localhost:3000/posts
Change it to: http://localhost:3000/posts
Solution 2 - Javascript
This error comes when the API that we are hitting is running on http and we are trying using https. Information was really useful.
Example: Using this https://localhost:8092/customers, when this http://localhost:8092/customers, must be used as API is running on http.
Solution 3 - Javascript
I encountered this error while trying to test the api request on postman. Ensure the the url link specified during the development process is the same url link been used during testing of postman.
example: during development, the url link specified is http://__. Then, during testing on postman make sure that the link is the same http://_.
API requests from Http:// and Https:// are treated and handled differently.
Solution 4 - Javascript
There is another case when the questioner's error message appears, and that is when you are sending a https request to a site whose SSL certificate has expired.
In such a case, I think all you can do is make the owner of the endpoint aware, and hope they fix it.