Error in Postman: Error: write EPROTO 8768:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:

Viewed 85713

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.
5 Answers

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

example

export const config = {
    baseUrl: "http://localhost:4000"
}

it has to be the http not https for localhost

"http://localhost:3000"

NOT

"https://localhost:3000"

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.

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.

Related