marcushill / troubadour-server

1 stars 1 forks source link

Timeout on PUT /user/location #54

Closed jblairkiel closed 7 years ago

jblairkiel commented 7 years ago

+Response:

504 Gateway Time-out

504 Gateway Time-out


nginx/1.10.1 (Ubuntu)
marcushill commented 7 years ago

I can't reproduce this. I'm assuming what happened was you tried it while the new code was deploying because I can't think of another way you'd get a gateway timeout.

Correction: Apparently sometimes weird things happen when body is invalid. I say sometimes because it didn't happen the first three times I tried. I'll keep looking into this.

marcushill commented 7 years ago

Fixed. I went ahead and pushed it live since it was affecting all errors. We had version 6 of node on the server and needed 7 for a new feature. It does, however, suggest that you were calling the api wrong. X-USER-ID goes in the header and the body is a json object like this:

{
    "lat": 50.1,
    "long": -10.1
}