I\'m sending a request on chrome that returns 504 but I\'m getting a 401 when curling it inside a terminal, what is the problem?