You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenEoApiError: [500] Internal: Server error: JSONDecodeError('Expecting value: line 4 column 1 (char 3)')
Confusingly, the HTML had three empty lines, causing the error to mention "line 4", which gave the impression that the URL at least started with valid JSON, so it took some time to realize that the geojson response wasn't valid JSON at all.
Some improvements to help with debugging this problem: add some logging around read_vector of what URL is loaded, what the content type is, warn if it is not json ( but still allow it: github raw urls have content type "text/plain"), improve the information of the exception (e.g. include the url)
The text was updated successfully, but these errors were encountered:
from https://discuss.eodc.eu/t/fit-class-random-forest-413-request-too-large/396:
process graph uses
read_vector
with a geojson URL like https://eolab.eodc.eu/hub/user-redirect/lab/tree/blabla/features.json, which forwards to a HTML login page (https://eolab.eodc.eu/hub/login?next=%2Fhub%2Fuser-redirect%2Flab%2Ftree%2Fblabla%2Ffeatures.json), which causes the json parsing to fail withConfusingly, the HTML had three empty lines, causing the error to mention "line 4", which gave the impression that the URL at least started with valid JSON, so it took some time to realize that the geojson response wasn't valid JSON at all.
Some improvements to help with debugging this problem: add some logging around
read_vector
of what URL is loaded, what the content type is, warn if it is not json ( but still allow it: github raw urls have content type "text/plain"), improve the information of the exception (e.g. include the url)The text was updated successfully, but these errors were encountered: