-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API call to flow/1 raises an error (status_code: 500) #305
Comments
Flow 1 is nonstandard. Best use the flow listing call, and only use the
returned flow id's.
I agree that error message could be nicer ;)
On Fri, 1 Sep 2017 at 15:50, Minori Inoue ***@***.***> wrote:
Hi,
An API call flows.get_flow(1) or REST API (flow/1) raises an error.
(Attached is the error message.)
[image: screen shot 2017-09-01 at 15 46 26]
<https://user-images.githubusercontent.com/16272787/29972591-e7a43404-8f2c-11e7-8693-7eb78d079f6d.png>
I would like to fetch every flow description, and I wondered what is the
problem here.
Thanks!
Minori
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#305>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABpQV5S_w_QCq6L5ob_9XAnf9xv5DjB6ks5seAulgaJpZM4PKLTe>
.
--
Thank you,
Joaquin
|
Hi Joaquin, Thanks for reply :) Here's the code: flows_list = flows.list_flows()
flow_ids = [dict['id'] for fid, dict in flows_list.iteritems()]
openml_flows = []
for flow_id in flow_ids:
print flow_id
openml_flows.append(flows.get_flow(flow_id)) I skipped flow id 1 and confirmed flows.get(flow_id) works with other ids in the list :) |
OK cool. Let's keep the issue open so we can see what's wrong with flow 1 .
On Mon, Sep 4, 2017 at 8:39 AM Minori Inoue ***@***.***> wrote:
Hi Joaquin,
Thanks for reply :)
Sorry, I didn't specify the situation, but I first fetch all the flows
with flows.list_flows() and iterate through it. The returned list of flows
contains a flow with id 1.
Here's the code:
flows_list = flows.list_flows()
flow_ids = [dict['id'] for fid, dict in flows_list.iteritems()]
openml_flows = []for flow_id in flow_ids:
print flow_id
openml_flows.append(flows.get_flow(flow_id))
I skipped flow id 1 and confirmed flows.get(flow_id) works with other ids
in the list :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#305 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABpQVxrockG-wD3mW6uBqRmibWFMlJTsks5se5sRgaJpZM4PKLTe>
.
--
Thank you,
Joaquin
|
I was looking into tidying this up, but by reading the code it seems to way forward is not very clear. It is clear that the server error does not have
If this is resolved, we can explicitly catch |
Thanks for looking into this @PGijsbers Regarding the fact that there's a server error when retrieving flow number 1, only @janvanrijn can fix this. I guess the new issue regarding the invalid xml should also be dealt by @janvanrijn Therefore, I took the liberty of assigning @janvanrijn to this issue ;) |
Related to openml/OpenML#362, which should be solved. |
External versions are required, right? |
Hi,
An API call flows.get_flow(1) or REST API (flow/1) raises an error. (Attached is the error message.)
I would like to fetch every flow description, and I wondered what is the problem here.
Thanks!
Minori
The text was updated successfully, but these errors were encountered: