Issue
I'm using the spring framework and when I try to register a user with postman I keep getting this error in the console, so I cannot register a user
POST http://localhost:8080/api/auth/signup
Error: connect ECONNREFUSED 127.0.0.1:8080
Request Headers
Content-Type: application/json
User-Agent: PostmanRuntime/7.25.0
Accept: */*
Postman-Token: c8f92e31-e8f6-40d9-90b0-2bd4faba0552
Host: localhost:8080
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Request Body
{
"username":"TestUserX",
"email":"[email protected]",
"password":"password1"
}
Solution
Missing an @Entity annotation in my models and this was causing a failure in the server. Also, I hadn't properly mapped some variables.Turns out spring annotations are really important :)
Answered By - Ferdinand
Answer Checked By - Pedro (JavaFixing Volunteer)