also handle general URLError (e.g. server not reachable)
Merge branch 'catch-json'