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
Accessing datasets in a public history (that does not belong to me) is restricted in an inconsistent way.
When I try to match datasets using the show_matching_datasets function, it throws me a 403 error.
MWE:
frombioblendimportgalaxygi=galaxy.GalaxyInstance(url="https://usegalaxy.eu", key=<api-key>)
dc=galaxy.datasets.DatasetClient(gi)
hc=galaxy.histories.HistoryClient(gi)
name_filter="illumina.*"##public_url="https://usegalaxy.eu/u/sars-cov2-bot/h/2020-09-28-update"## I found the below ID in the page source of the above urlpublic_hid="c36be749fd002b4d"hc.show_matching_datasets(public_hid, name_filter=name_filter)
it waits for about minute, and then gives out:
403 error "HistoryDatasetAssociation is not accessible by user"
however I can still iterate over the history and access the datasets (albeit much more slowly)
@mtekman Does HistoryClient.show_matching_datasets() work fine on one of your histories (not on a public one)? It may be that some of the datasets in that history are not public themselves.
I think you can speed up your workaround a lot by passing contents=True, then you don't need the for loop.
Accessing datasets in a public history (that does not belong to me) is restricted in an inconsistent way.
When I try to match datasets using the
show_matching_datasets
function, it throws me a 403 error.MWE:
it waits for about minute, and then gives out:
however I can still iterate over the history and access the datasets (albeit much more slowly)
The text was updated successfully, but these errors were encountered: