PeWu / osm-history

OpenStreetMap history viewer
Apache License 2.0
41 stars 11 forks source link

service entirely down? #13

Closed sun-geo closed 4 years ago

sun-geo commented 4 years ago

Page function seems currently down. Message: "Error loading history.", see: pewu down

PeWu commented 4 years ago

This was broken by https://github.com/openstreetmap/openstreetmap-website/pull/2485 The OSM API started returning JSON instead of XML responses.

Unfortunately, osm-history sends an accept: application/json header, probably a default somewhere. The solution is to send an accept: */* header when calling the OSM API. This looks like a small change but I'll be able to do it only tomorrow. I'd merge a PR if someone did the change earlier.

As a workaround, log in to OSM using the Login link at the bottom of osm-history. This uses a different path for making requests and it sends correct headers.

JOSM also had this problem and it's fixed in https://josm.openstreetmap.de/changeset/15968/josm and https://josm.openstreetmap.de/changeset/15969/josm

sun-geo commented 4 years ago

Thank you!