Closed jblairkiel closed 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.
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
}
+Response: