the client:
fetch(“/signup”, {
method: “POST”,
headers: {
username:signupthings[0].value,
email:signupthings[1].value,
password: signupthings[2].value,
img: file
}
})
the server: app.post(“/signUp”, (req, res) => {
does what it should do
}
error: Proxy error: Could not proxy request /signup from 192.168.1.8:3000 to http://192.168.1.8:3001.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNRESET). sometimes i get the error and sometimes it works but when i get the error i get no response.
i am expecting the problem happens when the client should receive the response
yosof fawzy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1