[webservices] no error code on bad catalog in fdsn event ws
Philip Crotwell
crotwell at seis.sc.edu
Tue Apr 2 14:05:51 PDT 2013
Never mind, this might be me not catching the 204. Thought I was, but not
so.
Philip
On Tue, Apr 2, 2013 at 3:55 PM, Philip Crotwell <crotwell at seis.sc.edu>wrote:
>
> I accidentally sent this URL to the event service. PREF is not a valid
> catalog I know, but the service seemed to simply close the connection
> rather than sending back a http error code, which makes it harder to debug
> bad queries.
>
>
> http://service.iris.edu/fdsnws/event/1/query?&minmag=5.0&maxmag=10.0&catalog=PREF&starttime=2012-04-01T00:00:00.000&endtime=2013-04-02T19:43:34.445
> Deleting the "&catalog=PREF", or changing it to NEIC+PDE results in a
> valid query with events.
>
> For comparison, if I change the starttime to be a bad date like
>
> 32012-04-01T00:00:00.000
>
> I get back a "Error 400: Bad date value for starttime:
> 32012-04-01T00:00:00.000" which is helpful in figuring out what I did wrong.
>
> thanks
> Philip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/webservices/attachments/20130402/a042d749/attachment-0001.htm>
More information about the webservices
mailing list