Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatch fdsnws-station POST requests #1

Open
damb opened this issue Apr 8, 2021 · 0 comments
Open

Dispatch fdsnws-station POST requests #1

damb opened this issue Apr 8, 2021 · 0 comments
Labels
bug Something isn't working compose References compose deployment fdsnws-station

Comments

@damb
Copy link
Contributor

damb commented Apr 8, 2021

Evidently, the current Compose deployment of eidaws-federator does not correctly dispatch fdsnws-station HTTP POST requests. That is, if the request message body looks e.g.

level=network
format=text

CH * * * 2019-01-01 2019-01-02

the service returns with HTTP status code 400 including an error message such as e.g.

Error 400: Bad request

{'format': ['Must be one of: xml.']}

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

Request:
http://localhost:8080/eidaws/station/xml/1/query

Request Submitted:
2021-04-08T09:51:21.919707

Service version:
0.11.8

This is because the Frontend Reverse Proxy does not analyze the request message body, and thus dispatches by default to a fdsnws-station-xml backend service. As a consequence, this issue can only be fixed if the Frontend Reverse Proxy parses the request message body in order to correctly detect the response format requested.

@damb damb added bug Something isn't working compose References compose deployment labels Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compose References compose deployment fdsnws-station
Projects
None yet
Development

No branches or pull requests

1 participant