Getting occasional redirects to html page on http://timetravel.mementoweb.org/api/json/

20 views
Skip to first unread message

Barry Hunter

unread,
Feb 17, 2017, 11:37:24 AM2/17/17
to Memento Development
For example, just tried

Got back these headers: 
(
    [0] => HTTP/1.1 302 Moved Temporarily
    [1] => Server: nginx/1.10.1
    [2] => Date: Fri, 17 Feb 2017 12:29:34 GMT
    [3] => Content-Type: application/json
    [4] => Content-Length: 0
    [5] => Connection: close
    [7] => Access-Control-Allow-Origin: *
    [8] => HTTP/1.1 200 OK
    [9] => Server: nginx/1.10.1
    [10] => Date: Fri, 17 Feb 2017 12:29:35 GMT
    [11] => Content-Type: text/html
    [12] => Connection: close
    [13] => Last-Modified: Fri, 17 Feb 2017 12:29:25 GMT
)

The html page "works" - it contains a list of mementos, but it no longer in easy to parse json format. 



I then retry the original request, and get a proper json 

{"timegate_uri":"http://timetravel.mementoweb.org/timegate/http://www.castlexplorer.co.uk/england/carisbrooke/carisbrooke.php","timemap_uri":{"json_format":"http://timetravel.mementoweb.org/timemap/json/http://www.castlexplorer.co.uk/england/carisbrooke/carisbrooke.php","link_format":"http://timetravel.mementoweb.org/timemap/link/http://www.castlexplorer.co.uk/england/carisbrooke/carisbrooke.php"},"mementos":{"next":{"datetime":"2013-06-15T20:37:42Z","uri":["http://archive.is/20130615203742/http://www.castlexplorer.co.uk/england/carisbrooke/carisbrooke.php"]},"last":{"datetime":"2016-03-07T00:11:03Z","uri":["http://web.archive.org/web/20160307001103/http://castlexplorer.co.uk/england/carisbrooke/carisbrooke.php"]},"prev":{"datetime":"2012-07-30T01:22:33Z","uri":["http://web.archive.org/web/20120730012233/http://www.castlexplorer.co.uk/england/carisbrooke/carisbrooke.php","http://archive.is/20120730012233/http://www.castlexplorer.co.uk/england/carisbrooke/carisbrooke.php"]},"first":{"datetime":"2003-10-07T19:56:05Z","uri":["http://web.archive.org/web/20031007195605/http://www.castlexplorer.co.uk/england/carisbrooke/carisbrooke.php"]},"closest":{"datetime":"2012-11-28T10:22:31Z","uri":["http://web.archive.org/web/20121128102231/http://www.castlexplorer.co.uk/england/carisbrooke/carisbrooke.php"]}},"original_uri":"http://www.castlexplorer.co.uk/england/carisbrooke/carisbrooke.php"}




Other requests succeed just fine the first time (either with normal json, or a 404 as appropriate. Or osscasionaly 429s, but trying to make sure dont make too many requests for that!) 
Reply all
Reply to author
Forward
0 new messages