Unable to make requests to my local server

POST http://localhost:8000/user/signup
Error: connect ECONNREFUSED 127.0.0.1:8000

Request Headers
Authorization:

Content-Type: application/json
User-Agent: PostmanRuntime/7.33.0
Accept: */*
Postman-Token: 3647718c-03a2-44ee-ae61-dd4d613b63cb
Host: localhost:8000
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

Request Body

{
    "useremail" : "aishiyer2701@gmail.com",
    "username" : "AIshwarya27",
    "userpassword" : "aishwarya2701"
}

Have you tried searching the forum?

This question has been posed many times.

It’s probably a local firewall issue related to the non standard port.

Hey @security-cosmonaut11 :wave:

Welcome to the Postman Community! :postman:

In order for other user to help you find a solution to the problems that you’re facing, can you edit and update the question to expand on the issue, please.

Use this post as a guide, which will highlight the information that’s required to get the best and quickest answers to your question.

could you guide me through it as I wasn’t able to find a ny good solution that solved the issue

But what posts did you look at and what have you already tried.

So we can narrow down the options on what else to try.

ECONNREFUSED means you tried to make a connection to another host but your connection was refused - either no one was listening or a firewall blocked you.

Have a look at the proxy settings in Postman.

Speak to your networks team. If this is run from Windows, you may need to allow port 8000 within the local firewall as it will probably be blocked by default.

Next thing is to look at is http vs https. Will the local end point actually accept http? It looks like a signup end point which ideally should be secure\https.

What happens if you try and access the end point via a standard browser? or from the command line\CURL. This can help pinpoint if the issue is with a setting in Postman or a more general issue (proxy\network\firewall). When in the request, in the right hand side pane, there is a code snippet option which can generate a CURL command from your request for this purpose.

Are there any other end paths for this application that you can test rather than sign up. Do any of them work?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.