Redmine API partially broken
This is probably a question for David Galloway (?) Did Redmine get updated recently? (Like, very recently?) Up until, well, very recently (yesterday?) curl commands like the following were producing meaningful output even on issues that have no relations (43725 has one): curl --silent 'https://tracker.ceph.com/issues/43725.json?include=relations' | jq '.issue.relations[]' Now it produces an error: jq: error (at <stdin>:0): Cannot iterate over null (null) Maybe that is related to fact that the following curl command is not producing any output, even though issue 43725 has relations: curl --silent 'https://tracker.ceph.com/issues/43725/relations.json' Any ideas appreciated. Nathan -- Nathan Cutler Software Engineer Distributed Storage SUSE LINUX, s.r.o. Tel.: +420 284 084 037
On 1/20/20 3:33 PM, Nathan Cutler wrote:
This is probably a question for David Galloway (?)
Did Redmine get updated recently? (Like, very recently?) Up until, well, very recently (yesterday?) curl commands like the following were producing meaningful output even on issues that have no relations (43725 has one):
curl --silent 'https://tracker.ceph.com/issues/43725.json?include=relations' | jq '.issue.relations[]'
Now it produces an error:
jq: error (at <stdin>:0): Cannot iterate over null (null)
Maybe that is related to fact that the following curl command is not producing any output, even though issue 43725 has relations:
curl --silent 'https://tracker.ceph.com/issues/43725/relations.json'
No, redmine didn't change, at least not that I can see. That's very odd. I get the same results. Maybe some kind of bug, out of space, or something?...dunno. I'll look at it if David doesn't find anything first
On 1/20/20 3:33 PM, Nathan Cutler wrote:
curl --silent 'https://tracker.ceph.com/issues/43725/relations.json'
I note that the form 'https://tracker.ceph.com/issues.json?issue_id=43725&include=relations' returns an empty relations array, and 'https://tracker.ceph.com/issues.json?include=relations' returns, as one of the issues, 43725 with a properly-populated relations field. O_o Using my API key for authenticated access for all tests, just in case.
On Tue, Jan 21, 2020 at 12:33:16AM +0100, Nathan Cutler wrote:
This is probably a question for David Galloway (?)
Did Redmine get updated recently? (Like, very recently?) Up until, well, very recently (yesterday?) curl commands like the following were producing meaningful output even on issues that have no relations (43725 has one):
curl --silent 'https://tracker.ceph.com/issues/43725.json?include=relations' | jq '.issue.relations[]'
Now it produces an error:
jq: error (at <stdin>:0): Cannot iterate over null (null)
Maybe that is related to fact that the following curl command is not producing any output, even though issue 43725 has relations:
curl --silent 'https://tracker.ceph.com/issues/43725/relations.json'
The problem is gone now. Something transient. Thanks, Dan, for looking at it. Nathan
participants (2)
-
Dan Mick
-
Nathan Cutler