Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

like image 333
Ayeen M Khan Avatar asked Jun 30 '20 13:06

Ayeen M Khan


3 Answers

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

like image 107
Kranthi Kumar Avatar answered Nov 01 '22 13:11

Kranthi Kumar


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.

like image 14
Sharad Avatar answered Nov 01 '22 13:11

Sharad


I had this issue in Postman when I tried to hit a before working API endpoint.

In my case, it was a Header that I had set manually before and forgotten to delete.

Header: Host

It has normally the value <calculated when request is sent> but I had it given a custom value.

like image 1
agoldev Avatar answered Nov 01 '22 14:11

agoldev