rizac/gfzreport

Doesn't cope with "204 No Data" from fdsnws-station responses

pevans-gfz opened this issue · 1 comments

A user got the following output:

(gfz-reportgen)sysop@host:~$ gfzreport template n -n 5M -s 2015 -p /home/sysop/tmp_fosa/pngs -i /home/sysop/tmp_fosa/fosa_avail.png -o /data2/gfzreport/network/source
Report's config files will be written to:
/data2/gfzreport/network/source/5M_2015
The directory path will be created (mkdir -p)
Continue?
 [y/N]: y
Creating 'report' in '/data2/gfzreport/network/source/5M_2015'
Warning: error fetching inventory (None (line 0))
   url: http://www.orfeus-eu.org/fdsnws/station/1/query?maxlon=-23.84885&minlon=-61.7003&level=station&minlat=-64.0921&endbefore=2015-01-01T00:00:00&maxlat=15.541919

ERROR: error while fetching other stations within network stations boundaries (''NoneType' object has no attribute 'year'')
check arguments and internet connection

orfeus-eu.org responds to this reasonable request with a 204 ("No Data") and zero bytes of response body.

rizac commented

Fixed with commit 73a68cc (why did github automatically put 5a423c6? whatever).

On the server, git pull + restart the server, then-produce the report and see