Hey, after a few months I waned to use obspy again to get a bit of catalog data. Best client for my case would be “EMSC” but with using this I suddenly get the HTTP Status code: 400 and the message: “obspy.clients.fdsn.header.FDSNBadRequestException: Bad request. If you think your request was valid please contact the developers.”
You can try initializing your client with Client(..., debug=True) then it will show any URLs that are fetched and as a last resort can copy/paste URLs into a browser. Doing that with your code shows the fetched URLS as:
And the server says it doesn’t like negative values in minimum magnitude. Just leave out minmagnitude=-3.0 (which frankly doesn’t do anything anyway ) and you’re good.
Two things though…
server should accept negative values for magnitude (anybody happen to know whom to best contact about this to let them know?)
It seems to be a bug in Event service rather than some specific setting on their server. They’re on 1.2.1, happens with us as well on version 1.2.4. However if I add maxmagnitude=-2 I get a regular 204 data error.
I could have sworn this topic has came up somewhere else but now I can’t find it… either I hallucinated that or it never got fixed!
I’m working on being better at getting all error message details passed through in the PR mentioned earlier, so error messages should be improved in next release