[openstreetmap-website] Query: timeout handling (#1178)

mmd notifications at github.com
Wed Mar 9 08:44:14 UTC 2016


During testing the #1156 fix, I noticed that the error handling is not ideal. Unlike other APIs, some error messages are returned as `remark` element in the returned payload, even with an HTTP return code of 200. Please see this ticket for details: https://github.com/drolbr/Overpass-API/issues/94

Here's an example how this is solved in overpass turbo:
https://github.com/tyrasd/overpass-turbo/blob/3f57688fe1da78e57d88fe202747281d84dfb156/js/overpass.js#L117-L148

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1178
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160309/d6ced6b6/attachment.html>


More information about the rails-dev mailing list