EIDA / mediatorws

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

HTTP 413 message (improvement idea) #118

Closed kaestli closed 3 years ago

kaestli commented 4 years ago

For the federator (dataselect, wfcatalog), thresholds for http 413 ("request too large" - actually meaning: response too large) are defined in stream days. It would be helpful for the user if in a http 413 response, the currently configured limit for the requested service is mentioned - it would allow him/her relatively easily to tailor request in a way to avoid meeting http 413 in future...

damb commented 4 years ago

For all resources HTTP status code 413 is returned as well if the POST body size exceeds certain limits.

damb commented 3 years ago

Fixed at https://github.com/damb/eidaws. Limits are included in case the response would be too large e.g.

Error 413: Request too large

Exceeded configured stream epoch limits: (limit per requested stream epoch=35 days, total=1000 days)

Usage details are available from http://www.fdsn.org/webservices/

Request:
http://eida-federator.ethz.ch/eidaws/dataselect/miniseed/1/query

Request Submitted:
2020-10-05T14:56:02.801564

Service version:
0.11.8