Closed philvarner closed 1 year ago
Effectively corrected in commit https://github.com/jjrom/resto/commit/aae5294f50f80fa3e24d2999de2eaa224527f0e7
However, brings a pystac error "UnicodeEncodeError: 'ascii' codec can't encode character '\u0306' in position 111: ordinal not in range(128)". Not a resto error imho
I let the pystac team know about this. However, I can't reproduce it locally.
Looks like a sub-catalog has a non-ascii character in its id
: https://tamn.snapplanet.io/catalogs/classifications/geographical/continent/continent:Asia:6255147/country:SriLanka:1227603/region:NaĕGenahiraPalata:
. This breaks GET requests. IMO this is a resto bug, because the link's href should be percent-encoded?
Here's the link that produced the error during resolution:
{
"rel": "child",
"href": "https://tamn.snapplanet.io/catalogs/classifications/geographical/continent/continent:Asia:6255147/country:SriLanka:1227603/region:NaĕGenahiraPalata:",
"type": "application/json",
"title": "Næ̆gĕnahira paḷāta",
"matched": 1138
}
@gadomski Thanks for adding context to the issue. You're right that resto did not encode the url path. This is corrected in #360 and tamn.snapplanet.io is updated accordingly
Describe the bug
Somewhere in the Catalog child & item link relation tree starting at https://tamn.snapplanet.io there is an invalid STAC object.
Running this code, which traverses those links to retrieve items:
results in
pystac.errors.STACTypeError: JSON does not represent a STAC object.
There's not a lot of information from that error, so it might require stepping through in a debugger.