-
Notifications
You must be signed in to change notification settings - Fork 42
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
connection.execute()
: only JSON-decode when response is JSON
#499
Comments
VictorVerhaert
added a commit
that referenced
this issue
Jan 18, 2024
github issue #499 added try/except to connection.execute to catch json decode errors If a json decode error occurs, the response is return raw
Added a simple try/catch approach. However not quite sure how to test this. |
VictorVerhaert
added a commit
that referenced
this issue
Jan 19, 2024
VictorVerhaert
added a commit
that referenced
this issue
Jan 29, 2024
github issue #499 auto_decode argument added to datacube.execute
VictorVerhaert
added a commit
that referenced
this issue
Jan 30, 2024
VictorVerhaert
added a commit
that referenced
this issue
Jan 30, 2024
VictorVerhaert
added a commit
that referenced
this issue
Jan 30, 2024
VictorVerhaert
added a commit
that referenced
this issue
Jan 30, 2024
VictorVerhaert
added a commit
that referenced
this issue
Feb 2, 2024
fixed by #529 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In #498 a user used
con.execute()
trying to get a GeoTIFF, but that failed becausecon.execute()
is doing JSON decoding by default:openeo-python-client/openeo/rest/connection.py
Line 1578 in d1e77e2
this should only be done if response mime type is actually JSON.
And return raw bytes otherwise?
The text was updated successfully, but these errors were encountered: