openml / openml/OpenML

JSON endpoint can return XML

Open
#1,200 1 comment 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

Querying https://www.openml.org/api/v1/json/data/tag?data_id=2&tag=test&api_key=000 results in an error in XML, instead of JSON. Note that this is not the case for all errors, e.g. https://www.openml.org/api/v1/json/data/24567890 shows the error in JSON format.

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 by reproducing the request to /api/v1/json/data/tag?data_id=2&tag=test&api_key=000 and compare its error response with /api/v1/json/data/24567890. Trace the API error handling for these two entry points; done means the tag endpoint returns its error in JSON rather than XML.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.