Hi,
May I ask that, if I am trying to do a POST do a random port e.g. https://localhost:5001/api/TodoItems/1. and In āBodyā is just a simple, raw, JSon, then;
{
ānameā:āwalk dogā,
āisCompleteā:true
}
However, no matter what port I am choosing, I always get āError: connect ECONNREFUSEDā
I already disabled SSL certificate verification and unticked using system proxy. Is there a way for me to just POST to my localhost
Do you have a webserver configured locally, and listening at that port? Is there a reason you are using 5001 over just 80 or 443? Otherwise I recommend staying in common port territory.
Thank you for replying.
no, I have not made any webserver configuration locally. May I know what is the range of the common port territory too?
So basically I have to do a local webserver configuration and uses common port?
Hey, Iām trying to send post request to my localhost:4000 server & I already have my node server running on 4000.
But Iām continuously getting the following error:
Error: Client network socket disconnected before secure TLS connection was established
Do post what troubleshooting you have done till now, it helps others to provide better help.
Also, instead of using an existing thread, try creating a new thread in appropriate section. (Unless your problem is exactly the same, which in this case it doesnāt look to be the case)
From what I see you are trying to access localhost over TLS (https) and most likely you do not have the certificates setup on your server. Try accessing your server over http, and things should work fine: http://localhost:4000
Assuming this is a plain vanilla test node server, highly likely https isnāt setup.
Being a newbie myself, I was confusing the Postman Desktop App with the Postman Desktop Agent. Similar names, but completely different apps (and concepts)!
I was using port 5000 and getting the same error. It worked for me, turning off āUse the system proxyā and use the Proxy Type HTTP only as I donāt have SSL certificate.