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

error downloading my data set 40864 #416

Open
joaquinvanschoren opened this issue May 31, 2018 · 6 comments
Open

error downloading my data set 40864 #416

joaquinvanschoren opened this issue May 31, 2018 · 6 comments

Comments

@joaquinvanschoren
Copy link
Sponsor Contributor

From @behrica on May 31, 2018 9:56

I have problems to download my own task 168302
(better said : with its data set: 40864)
with the R API.
I think I set the apikey correctly, but something strange happens:

getOMLTask(168302)
Downloading from 'http://www.openml.org/api/v1/task/168302' to '/tmp/RtmpAvftWA/cache/tasks/168302/task.xml'.
Downloading from 'https://www.openml.org/api_splits/get/168302/Task_168302_splits.arff' to '/tmp/RtmpAvftWA/cache/tasks/168302/datasplits.arff'
Downloading from 'http://www.openml.org/api/v1/data/40864' to '/tmp/RtmpAvftWA/cache/datasets/40864/description.xml'.
Downloading from 'https://www.openml.org/data/v1/download/7387780/Honey_bee_Seasonal_mortality.arff' to '/tmp/RtmpAvftWA/cache/datasets/40864/dataset.arff'
Error in parseHeader(path) : 
  Invalid column specification line found in ARFF header:
<!doctype html>

Looking at the local dataset file, shows taht iot contains an html error:

<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Forbidden</title>
</head>
  <body>
    <h3>403 Forbidden</h3>
    <p>You don't have the right access rights to view this page. </p>
  </body>
</html>
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Forbidden</title>
</head>
  <body>
    <h3>403 Forbidden</h3>
    <p>You don't have the right access rights to view this page. </p>
  </body>
</html>

It should be all owned by me...

Maybe it is because the visibility is set to "private", but I don't know how to change it:

I tried to delete the data set and all tasks related to it, but don't manage this neither..

Copied from original issue: openml/OpenML#754

@joaquinvanschoren
Copy link
Sponsor Contributor Author

This is likely an issue with the R API, I'll move this issue to the R tracker.

Adding your api key to the url seems to work, e.g. try:
https://www.openml.org/data/v1/download/7387780/Honey_bee_Seasonal_mortality.arff?api-key=1234567890

so I assume the R API is not passing it correctly.

I can also make the dataset public if you like. If you click on the 'edit' button on the dataset page you can also change it. Note: we are in the middle of redesigning these forms, let me know if it does not work.

@behrica
Copy link

behrica commented May 31, 2018

Not sure, as it does not work with my API key.

So this

curl https://www.openml.org/data/v1/download/7387780/Honey_bee_Seasonal_mortality.arff?api-key=MY_API_KEY

fails. with "

403 Forbidden


You don't have the right access rights to view this page.

"

@behrica
Copy link

behrica commented May 31, 2018

Sorry, it does work from command line, I missspelled the api_key parameter.

@behrica
Copy link

behrica commented May 31, 2018

The problem is in this line:

resp = GET(url)

in here we download the file with a simple

GET(url), 

which does never adds the apikey, even if set correctly.

@joaquinvanschoren
Copy link
Sponsor Contributor Author

Indeed.
@giuseppec do you have time to look at this issue?

@giuseppec
Copy link
Member

Hm, I am getting the error "403 Forbidden" as well here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants