PacktPublishing / Hands-on-Microservices-with-Go

Hands-on Microservices with Go
MIT License
70 stars 39 forks source link

veronica.muller + sacachispas-futbol-club does not log in #5

Open gluis opened 4 years ago

gluis commented 4 years ago

Posting the same username/password values in Postman isn't working for me. All services are running (user, session, api-gateway, mariadb, reddis). I get two conflicting error messages. Headers says 401 Unauthorized, and the body says 404 Not Found on User Request. It appears to be returning from func Authorize, here:

user, err := h.UsersRepo.GetUserByUsername(username) if err == repositories.Err404OnUserRequest { w.WriteHeader(http.StatusUnauthorized) fmt.Fprint(w, err) return

All services are listening:

com.docke 10630 l 43u IPv6 0xfd31a67b54f73f9 0t0 TCP *:3306 (LISTEN) com.docke 10630 l 44u IPv6 0xfd31a67b54f67b9 0t0 TCP *:6379 (LISTEN) main 14753 l 13u IPv6 0xfd31a67b54f9ed9 0t0 TCP *:8001 (LISTEN) main 19080 l 3u IPv6 0xfd31a67e66253f9 0t0 TCP *:8000 (LISTEN) main 19316 l 3u IPv6 0xfd31a67e66247b9 0t0 TCP *:8443 (LISTEN)

There's a list of password from IDs, but no list of usernames. So, veronica.muller is the only one I could try.

emluque commented 3 years ago

Hi @gluis, I'm sorry you had that problem and I'm even more sorry that it took this long to reply. For some reason, github was not sending me notifications on issues. Could you tell me on which section and video, you were having this issue.

Thanks in advance, Emiliano