You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure because everything worked fine a few days ago (and both the converter and the template seem to be unchanged for several months). So I suppose some recent change caused this bug?
And it also appears to happen with other listing calls, so not only the task/list is broken.
OpenML attempts to return correct HTTP headers, like the size of a HTTP response. Apparently, this header has become corrupt (and returns a number too low, or too many characters). I have applied a hotfix on the main server. This needs to be fixed in a more rigorous way though.
Found the bug and fixed it. The content-length of the JSON was correct, but the server was returning 2 additional newlines. These were caused by an empty line at the end of 2 recently updated files.
Activity
janvanrijn commentedon Feb 22, 2019
Seems that a tailing
}is missing.This is the function that we use to convert XML to JSON:
https://github.com/openml/OpenML/blob/master/openml_OS/core/MY_Api_Model.php#L25
This is an additional json template for tasks
https://github.com/openml/OpenML/blob/master/openml_OS/views/pages/api_new/v1/json/tasks.tpl.php
I suspect (and seriously hope) the problem is in the latter.
giuseppec commentedon Feb 22, 2019
Not sure because everything worked fine a few days ago (and both the converter and the template seem to be unchanged for several months). So I suppose some recent change caused this bug?
And it also appears to happen with other listing calls, so not only the task/list is broken.
janvanrijn commentedon Feb 22, 2019
OpenML attempts to return correct HTTP headers, like the size of a HTTP response. Apparently, this header has become corrupt (and returns a number too low, or too many characters). I have applied a hotfix on the main server. This needs to be fixed in a more rigorous way though.
joaquinvanschoren commentedon Feb 22, 2019
Found the bug and fixed it. The content-length of the JSON was correct, but the server was returning 2 additional newlines. These were caused by an empty line at the end of 2 recently updated files.
giuseppec commentedon Feb 23, 2019
Thx ;). Another related (but different) issue is this https://test.openml.org/api/v1/json/study/list/ (test server gives PHP error) and the main server gives an empty list: https://www.openml.org/api/v1/json/study/list/
Maybe this is due to the recent improvements on studies?
janvanrijn commentedon Feb 23, 2019
Listing function is nit unit tested yet. (haven't implemented it in python api) seems like a php bug. Will fix on monday.
joaquinvanschoren commentedon Jul 9, 2019
seems fixed :)