[openstreetmap/openstreetmap-website] PUT /api/0.6/gpx/:id causes internal server error (#1982)

Harel M notifications at github.com
Mon Sep 10 13:20:33 UTC 2018


The error message I'm getting back in the body is:
```
ActiveRecord::RecordNotSaved: Failed to replace tags because one or more of the new records could not be saved.
```
The same error appears in the `Error` header in the response.
Which is a bit generic - there's no mention of the fact that empty tag is invalid - which is what I would expect as a return error, and I would expect 400 status code since the data I'm sending is invalid, as far as I understand.
When my server returns 500 I know there's a problem in my server's code, but maybe this is just me...
Feel free to close this issue if returning 500 is a valid case for you.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1982#issuecomment-419909210
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180910/4a4da32c/attachment-0001.html>


More information about the rails-dev mailing list