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
Multi-level datasets from S3 storage added to a xcube Viewer instance in Jupyter cause server 404 errors for many endpoints. The reason is that the default dataset identifiers contain a slash (/) causing invalid URLs not found by xcube Server. This happens although xcube Viewer correctly URL-encodes the dataset identifiers when constructing server request URLs.
A possible quick-fix for the problem is to encode slashes by a different character in the Viewer.add_dataset() method. The solution can be verified by adding a multi-level dataset with an explicit identifier. This works:
Datasets that have dataset identifers with slashes should work with xcube Server when added to the xcube Viewer instance.
Screenshot
Additional context
xcube on DeepESDL platform.
The text was updated successfully, but these errors were encountered:
forman
changed the title
Problem publishing certain datasets in viewer runnning in Jupyter notebook
Problem publishing multi-level datasets in viewer runnning in Jupyter notebook
Jun 7, 2024
That time, the issue was solved by correctly URL-encoding the dataset identifier URL part.
For some reason, the server URLs are decode twice so that the forward slash again appears and causes the 404.
Describe the bug
Multi-level datasets from S3 storage added to a xcube Viewer instance in Jupyter cause server 404 errors for many endpoints. The reason is that the default dataset identifiers contain a slash (
/
) causing invalid URLs not found by xcube Server. This happens although xcube Viewer correctly URL-encodes the dataset identifiers when constructing server request URLs.A possible quick-fix for the problem is to encode slashes by a different character in the
Viewer.add_dataset()
method. The solution can be verified by adding a multi-level dataset with an explicit identifier. This works:To Reproduce
See screenshot below.
Expected behavior
Datasets that have dataset identifers with slashes should work with xcube Server when added to the xcube Viewer instance.
Screenshot
Additional context
xcube on DeepESDL platform.
The text was updated successfully, but these errors were encountered: