Reputation: 695
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:
Upvotes: 66
Views: 160408
Reputation: 585
it has to be the http not https for localhost
"http://localhost:3000"
NOT
"https://localhost:3000"
Upvotes: 29
Reputation: 59
const transporter = nodemailer.createTransport({
host:'smtp.gmail.com',
port:587,
secure:false,
requireTLC:true,
auth: {
user:'[email protected]',
pass:'youpass'
}
}
Notice that secure:
is false
.
The error occurs when secure:
is true
.
Upvotes: 5
Reputation: 3431
check that you are using the HTTP
protocol not HTTPS
to send requests to the server:
export const config = {
baseUrl: "http://localhost:4000"
}
Upvotes: 22
Reputation: 853
For Localhost we don't really need https, please try with http://localhost:9001/test
Upvotes: 82
Reputation: 695
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.
Upvotes: 1