Closed trescube closed 9 years ago
Beauty...
On Mon, Nov 9, 2015 at 12:01 PM, Stephen K Hess notifications@github.com wrote:
I tried running the utility but it appears that when the server returns an error, XML is dropped into the geojson file:
<?xml version="1.0" encoding="UTF-8"?>
% — Reply to this email directly or view it on GitHub https://github.com/whosonfirst/go-whosonfirst-clone/issues/6. InternalError
We encountered an internal error. Please try again. 869BD31C5B34FB96 a4U+mbECCoUshCCDsl94BQXPsQfR6N/rW0PtscnjerPU3nGzsv4nNPCFwEtkydy+fNPghHOxvKE=
Oh there's the problem:
https://github.com/whosonfirst/go-whosonfirst-clone/blob/master/clone.go#L271-L279
I guess I just got used to Python freaking out and blowing its brains out when it encounters a not-200 status code. I will update accordingly...
I tried running the utility but it appears that when the server returns an error, XML is dropped into the geojson file: