-
Notifications
You must be signed in to change notification settings - Fork 2
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
404 for a legit subject "folder" #39
Comments
This is because the optimization that |
interesting -- could you point to that optimization? |
@yarikoptic Here: Lines 318 to 327 in 49d49f3
When the DANDI client needs to determine whether a given path points to an asset or an asset folder, it makes a request to |
oh, you are using that end point , for which we also have
Why don't you use the then if 200 with count - 0 -- it is a file (we do not contain empty folders). If 404 -- unknown path. If count >= 1 -- folder, e.g.
? |
@yarikoptic I also use that endpoint, but for a different purpose. The key difference is that, while See also dandi/dandi-archive#1837, where I requested a dedicated endpoint for doing all of this at once. |
I wonder if this is the same issue. After establishing yoh@typhon:~/proj/dandi/zarr-benchmarking/tools$ cat ~/.config/rclone/rclone.conf
[DANDI-WEBDAV]
type = webdav
url = https://dandi.centerforopenneuroscience.org
vendor = other I get
where on server side it is
but in the browser (visiting https://dandi.centerforopenneuroscience.org/dandisets/000108/draft/sub-U01hm15x/) it looks different -- seems to not use PROPFIND but goes to GET:
in any case (the same or not) let's for now, until dandi-archive is fixed/released (it is being looked at but who knows when fix gets released etc), let's sort ourselves to workaround - I bet Rust has some |
@yarikoptic Trying to work around the problem via sorting would require first fetching every page of https://api.dandiarchive.org/api/dandisets/000108/versions/draft/assets/?path=sub-MITU01&order=path&metadata=1, which means 69 requests to get 6850 items. |
isn't it required now anyways to fetch half of those pages "on average" while considering paths underneath? in other words that it is already as expensive (
|
I don't know what you're referring to. |
my bad, I re-reviewed your description of optimization - I remembered it wrong. But is it the same issue I described above? |
@yarikoptic For this specific case, I believe the reason it's not working with rclone is because you left out the "draft" component after "000108", i.e., you should have run |
doh ... sorry for the "typo" and thanks for catching it, so it was a human bug indeed. |
Fixed by dandi/dandi-archive#1839. |
For http://localhost:8080/dandisets/000108/draft/sub-MITU01/ which should correspond to https://dandiarchive.org/dandiset/000108/draft/files?location=sub-MITU01&page=1
The text was updated successfully, but these errors were encountered: