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

Backend validation tool (go) POST request failures #45

Closed
soxofaan opened this issue Jul 10, 2020 · 2 comments
Closed

Backend validation tool (go) POST request failures #45

soxofaan opened this issue Jul 10, 2020 · 2 comments

Comments

@soxofaan
Copy link
Member

soxofaan commented Jul 10, 2020

While running the go backend validation tool (Open-EO/openeo-backend-validator) against localhost openeo-python-driver, I found that non of the POST request were working. The posted data seems empty, resulting in json decode issues

400 Bad Request: Failed to decode JSON object: Expecting value: line 1 column 1 (char 0)

The post data is being send, because it works against other backends

@soxofaan
Copy link
Member Author

Lost half a day on this rabbit hole

Apparently it is because the go HTTP client sends the POST data with chunked encoding, which is not well supported by our setup of werkzeug/flask/gunicorn out of the box

some references:

@soxofaan
Copy link
Member Author

one solution is to upgrade to gunicorn>=20.0.1, however the dependency was explicitly pinned down by Open-EO/openeo-geopyspark-driver@2b5be85 so I have to check if that is possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant