53

During request GET in Postman (https://localhost:9001/test) I've received an error:

Error: write EPROTO 8768:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\users\administrator\buildkite-agent\builds\pm-electron\postman\electron-release\vendor\node\deps\openssl\openssl\ssl\record\ssl3_record.c:252:

Warning: This request did not get sent completely and might not have all the required system headers.

Postman Configuration:

  • SSL certificate verification is disabled;
  • Proxy configuration - Default Proxy Configuration and Proxy configurations for sending requests are disabled;
  • Request timeout in ms - 0.
Vik
  • 565
  • 1
  • 4
  • 5

5 Answers5

70

For Localhost we don't really need https, please try with http://localhost:9001/test

jeeva nantham
  • 733
  • 4
  • 4
25

it has to be the http not https for localhost

"http://localhost:3000"

NOT

"https://localhost:3000"

Yasir
  • 489
  • 5
  • 11
21

check that you are using the HTTP protocol not HTTPS to send requests to the server:

example

export const config = {
    baseUrl: "http://localhost:4000"
}
ahmnouira
  • 1,607
  • 13
  • 8
6
const transporter = nodemailer.createTransport({
    host:'smtp.gmail.com',
    port:587,
    secure:false,
    requireTLC:true,
    auth: {
        user:'youmail@gmail.com',
        pass:'youpass'
    }
}

Notice that secure: is false.

The error occurs when secure: is true.

James McGuigan
  • 7,542
  • 4
  • 26
  • 29
Naseem khan
  • 61
  • 1
  • 1
1

the reason was in an incorrect link. In the controller I have used

@RequestMapping(value="/{baseSiteId}/test")

And this {baseSiteId} was not what I expected.

Vik
  • 565
  • 1
  • 4
  • 5