openml / openml/OpenML

Failure while attaching runs to study on Test server

Open
#1,080 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
755
Forks
128
PR merge metrics
No merged PRs in 30d

Description

Description

The openml-python API has a unit test failing with a server exception. In the unit test, a study is being successfully uploaded, following which more runs retrieved from the server are being attached to this study. However, this fails with the error:

openml.exceptions.OpenMLServerException: https://test.openml.org/api/v1/xml/study/684/attach returned code 1045: Problem attaching entities. Please ensure to only attach entities that exist - None
Steps/Code to Reproduce

The POST request to the server which results in the above error should be reproducible using curl:

curl --data "api_key=610344db6388d9ba34f6db45a3cf71de" --data "ids=166,167,168,386,480,481,512,516,520,772" https://test.openml.org/api/v1/xml/study/685/attach

or Python:

import requests
r = requests.post(url="https://test.openml.org/api/v1/xml/study/685/attach", data={'ids': '166,167,168,386,480,481,512,516,520,772', 'api_key': 'c0c42819af31e706efe1f4b88c23c6c1'}, files=None)
print(r.status_code)
print(r.text)
Expected Results

Should return a response code of 200.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the openml-python unit test that uploads study 685 and attaches runs, then reproduce the failure using the POST request to /api/v1/xml/study/685/attach shown in the issue. Trace the server-side handling of the attach endpoint and verify that the reported IDs can be attached successfully with an HTTP 200 response.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.