Skip to content

Validation error for zarrRootPath and zarrMd5SumManifest on dataset upload #145

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

Closed
LFhase opened this issue Jul 21, 2024 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@LFhase
Copy link

LFhase commented Jul 21, 2024

Polaris version

0.7.1

Python Version

3.10.14

Operating System

Linux

Installation

pip

Description

When I follow the steps in https://polaris-hub.github.io/polaris/main/tutorials/custom_dataset_benchmark.html to create a dataset from a csv file, and upload the dataset to hub, it reports the following error:

Traceback (most recent call last):
  File "xx/miniconda3/envs/xxx/lib/python3.10/site-packages/polaris/hub/client.py", line 161, in _base_request_to_hub
    response.raise_for_status()
  File "xx/miniconda3/envs/xxx/lib/python3.10/site-packages/httpx/_models.py", line 761, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '422 Unprocessable Entity' for url 'https://polarishub.io/api/v1/dataset/xxxx/xxxx'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "xx/miniconda3/envs/xxx/lib/python3.10/site-packages/polaris/hub/client.py", line 496, in upload_dataset
    response = self._base_request_to_hub(
  File "xx/miniconda3/envs/xxx/lib/python3.10/site-packages/polaris/hub/client.py", line 172, in _base_request_to_hub
    raise PolarisHubError(
polaris.utils.errors.PolarisHubError: The request to the Polaris Hub failed. See the error message below for more details:
{
  "issues": [
    {
      "code": "custom",
      "message": "For Zarr datasets, both zarrContent and zarrRootPath must be provided",
      "path": [
        "zarrRootPath",
        "zarrMd5SumManifest"
      ]
    }
  ]
}

Steps to reproduce

Just follow the steps https://polaris-hub.github.io/polaris/main/tutorials/custom_dataset_benchmark.html , change the dataset and owner names to myself and uncomment the dataset uploading part.

Additional output

No response

@LFhase LFhase added the bug Something isn't working label Jul 21, 2024
@cwognum
Copy link
Collaborator

cwognum commented Jul 21, 2024

Thanks for reporting this issue, @LFhase !

This seems related to #137. We fixed the issue, but didn't release a new version yet. Let me do that now!

@cwognum
Copy link
Collaborator

cwognum commented Jul 21, 2024

We just released 0.7.2. Could you try again with this version and let me know whether the issue persists?

@cwognum cwognum changed the title Client error when uploading customized dataset Validation error for zarrRootPath and zarrMd5SumManifest on dataset upload Jul 21, 2024
@cwognum cwognum self-assigned this Jul 21, 2024
@LFhase
Copy link
Author

LFhase commented Jul 21, 2024

Hi @cwognum , Thank you for the update! It fixes the issue perfectly!

@LFhase LFhase closed this as completed Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants