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

Embedded comparison map does not show raster tiles until I zoom - "Read failed" on raster tile requests #483

Open
j08lue opened this issue Nov 6, 2024 · 1 comment

Comments

@j08lue
Copy link
Contributor

j08lue commented Nov 6, 2024

How to reproduce

See comparison map below the scrollytelling feature in https://deploy-preview-481--visex.netlify.app/stories/darnah-flood

Look at the requests that are made as it loads and observe that no tiles show up and requests fail with 500.

When you zoom in, those tile requests succeed and data appears.

Cause?

The question is whether this is a backend service issue, a data issue (broken COG), or a frontend/configuration issue (whether the requests is even legal).

Either way, I think the 500 error is not very helpful here.

Re-tracing the requests

https://openveda.cloud/api/raster/searches/register

with payload:

{"filter-lang":"cql2-json","filter":{"op":"and","args":[{"op":">=","args":[{"property":"datetime"},"2023-09-07T00:00:00.000Z"]},{"op":"<=","args":[{"property":"datetime"},"2023-09-07T23:59:59.999Z"]},{"op":"eq","args":[{"property":"collection"},"darnah-flood"]}]}}

responded with:

    "links": [
        {
            "href": "https://openveda.cloud/api/raster/searches/27e9884f37bd3fc632658a84644b68dd/info",
            "rel": "metadata",
            "title": "Mosaic metadata"
        },
        {
            "href": "https://openveda.cloud/api/raster/searches/27e9884f37bd3fc632658a84644b68dd/{tileMatrixSetId}/tilejson.json",
            "rel": "tilejson",
            "templated": true,
            "title": "Link for TileJSON (Template URL)"
        },
        {
            "href": "https://openveda.cloud/api/raster/searches/27e9884f37bd3fc632658a84644b68dd/{tileMatrixSetId}/WMTSCapabilities.xml",
            "rel": "wmts",
            "templated": true,
            "title": "Link for WMTS (Template URL)"
        }
    ]
}

and then tile requests like

https://openveda.cloud/api/raster/searches/27e9884f37bd3fc632658a84644b68dd/tiles/WebMercatorQuad/13/4611/3306?assets=cog_default&bidx=1&title=VEDA+Dashboard+Render+Parameters&rescale=0%2C5000&resampling=bilinear&colormap_name=magma

fail with a 500 and

{"detail":"Read failed. See previous exception for details."}
@dzole0311
Copy link
Collaborator

I did some quick debugging and noticed that the 500 errors are consistently thrown starting at zoom level 12 and higher for this dataset. Hardcoding the zoom to 11 resolves the problem, so it seems to be specific to higher zoom levels and likely a backend issue rather than an illegal request format.

cc @anayeaye @smohiudd

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

2 participants