OpenML icon indicating copy to clipboard operation
OpenML copied to clipboard

JSON endpoint can return XML

Open PGijsbers opened this issue 2 years ago • 1 comments

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.

PGijsbers avatar Nov 03 '23 15:11 PGijsbers

Added openml_OS/views/pages/api_new/v1/json/error-message.tpl.php to for consistent JSON-formatted error responses... pls check and do let me know what can be changed/improved

agrim-rai avatar Nov 19 '25 07:11 agrim-rai