EIDA / mediatorws

EIDA NG Mediator/Federator web services
GNU General Public License v3.0
6 stars 6 forks source link

fed, stl: Bad Request Response #5

Closed Jollyfant closed 6 years ago

Jollyfant commented 7 years ago

Hi guys, the bad request error message does not show up well in the browser:

mediator-devel.ethz.ch/fdsnws/dataselect/1/query?net=NL&start=2016-01-01T00:00:00&end=2016-01-01T00:01:00
>>> {"message": "\nError 400: Bad request\n\nBad request\n\nUsage details are available from http://www.fdsn.org/webservices/\n\nRequest:\nhttp://localhost:5000/fdsnws/dataselect/1/query?net=NL&start=2016-01-01T00:00:00&end=2016-01-01T00:01:00\n\nRequest Submitted:\n2017-02-07 10:38:22.295255\n\nService version:\n0.9.1\n"}

I guess the JSON should be parsed.

Best, Mathijs

feuchner commented 7 years ago

It's not a bug, it's a feature ;-) Joking aside: I haven't found a way so far to make flask-RESTful return plain-text error messages.

damb commented 6 years ago

Duplicate of #21

damb commented 6 years ago

FDSNWS errors implemented with 77cfb2a. Closed.