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

the repo shows with 404 #839

Open
ChristLZS opened this issue Dec 11, 2024 · 4 comments
Open

the repo shows with 404 #839

ChristLZS opened this issue Dec 11, 2024 · 4 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@ChristLZS
Copy link

ChristLZS commented Dec 11, 2024

Describe the bug
After using sdk to upload a .parquet file, the repo shows with 404

Environment
CSGHub Version: latest in 2024.12.11
OS: Linux
Hardware: 4c8G
Launch: docker

To Reproduce
Steps to reproduce the behavior:

  1. generate a .parquet file
import pandas as pd

data = {"id": [1, 2, 3], "name": ["Alice", "Bob", "Charlie"], "age": [25, 30, 35]}

df = pd.DataFrame(data)

df.to_parquet("example.parquet", index=False)

print("Parquet 文件已创建:example.parquet")
  1. use sdk to upload
from pycsghub.snapshot_download import snapshot_download
from pycsghub.file_download import file_download
from pycsghub.file_upload import http_upload_file

token = "xxxxx"
endpoint = "http://x.x.x.x"
repo_id = "test/test"
repo_type = "dataset"
cache_dir = "./cache"

# 上传文件
result = http_upload_file(repo_id, endpoint=endpoint, token=token, repo_type=repo_type, file_path="./example.parquet")

  1. go to web to refresh this repo get with 404
Request URL:
http://x.x.x.x/api/v1/datasets/test/test/dataviewer/catalog
Request Method:
GET
Status Code:
404 Not Found

Expected behavior
It should be work well without 404.

@hiveer
Copy link
Collaborator

hiveer commented Dec 12, 2024

@ChristLZS It is because our dataset data view function is still in development, and not ready, please stay tuned for future updates

@Rader Rader added the enhancement New feature or request label Dec 12, 2024
@Rader
Copy link
Collaborator

Rader commented Dec 12, 2024

@hiveer it's better to remove the request to apis not implemented.

@Rader Rader added the bug Something isn't working label Dec 12, 2024
@hiveer
Copy link
Collaborator

hiveer commented Dec 12, 2024

@hiveer it's better to remove the request to apis not implemented.

sure, will do it asap

@Rader
Copy link
Collaborator

Rader commented Dec 18, 2024

@hiveer does v1.2.0 new release fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants