Error: write EPROTO 34557064:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:../../third_party/boringssl/src/ssl/tls_record.cc:242:

Ayeen M Khan picture Ayeen M Khan · Jun 30, 2020 · Viewed 83.4k times · Source

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

Answer

Kranthi Kumar picture Kranthi Kumar · Aug 9, 2020

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