JSON endpoint can return XML
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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