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

3
  • 2
    Add your code snippet and error screenshot for better clarifications.
    – sidverma
    Jun 30, 2020 at 13:52
  • 5
    It actually helped me.
    – Swaroop
    Jul 9, 2020 at 9:59
  • 2
    The solution is more like a workaround. A proper API redirects HTTP traffic with a 301 to HTTPS. So, HTTP traffic is not possible on API's with redirect on. If you switch on HTTP, then this indeed is a solution because HTTP does not do anything with SSL.
    – BertC
    Mar 25, 2022 at 17:40

9 Answers 9

368

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

4
  • 4
    How come does that work? For other methods it works with HTTPS only one bumped me in to this error that is stated in the title of the question.
    – Liviu Sosu
    Feb 9, 2021 at 18:32
  • 1
    Well of course but the point is one should be able to make an HTTPS request also and to test that.
    – geoidesic
    Jul 2, 2022 at 10:37
  • 1
    Very helpful. It works with OAuth2.
    – Vy Do
    Dec 5, 2022 at 3:47
  • 1
    ..and what if we need to use HTTPS? not a very helpful answer, on that side. Jul 18 at 7:04
17

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.

10
error-write-eproto-34557064error100000f7ssl-routinesopenssl-internalwrong

https://localhost:5000/users

replace HTTPS to HTTP

3

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.

2

I got this exact error message because I had configured certificates for SSL incompletely in Postman. When specifying URL and port for my certificates, the port input field had a placeholder value of 443, which was the correct one. So I skipped actually typing it.

Turns out I actually had to type it, for it to work.

1

For anyone who is still struggling I had another solution to remove the trailing "/" from my route for example:

@app.get("/api/book/{id}/info/")

Changed to:

@app.get("/api/book/{id}/info")
1
  • 3
    I think that this is really not the cause of this error.
    – Andrii
    Oct 14, 2022 at 22:30
0

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.

0

In my case, the request was a redirection 302, in that case, I disable Automatically follow redirects on Postman settings Settings

-1

I also get the same error while I was accessing the rest API through postman.

Https//:localhost:8662/hello

Instead of using HTTPS, We can use HTTP//:localhost:8662/hello

Now it'll work.

HTTPS-It is an advanced version of HTTP. This comes under SSL protocol which means Security .https encrypt the data so we can use HTTPS when we pass sensitive information like credit card transaction because it encrypts the data.

4
  • 2
    As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Oct 21, 2022 at 8:34
  • 3
    Your URL format is wrong. It should be https://localhost:8662/hello, not Https//:localhost:8662/hello or HTTP//:localhost:8662/hello.
    – Michael M.
    Oct 27, 2022 at 21:49
  • @MichaelM. The URL scheme is case in-sensitive, so it really doesn't matter.
    – Tigerrrrr
    Feb 17 at 23:27
  • 2
    @Tigerrrrr Yes, it isn't case sensitive, but you certainly can't have a preceding colon. The host name :localhost is complete nonsense. Take a closer look.
    – Michael M.
    Feb 18 at 0:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.