jq: error (at <stdin>:2): Cannot iterate over null (null)
CircleCI received exit code 0
I assumed the URL or something had changed but when I do a simple curl, I’m getting the expected items array back, from the failure above I assumed it was empty. It seems this shouldn’t be the case, any pointers on debugging this?
Seems my issue was where the CCI_TOKEN value was set.
I did this in my context as an ENV variable and I assumed this would be enough? I cannot find another way other than directly creating the environment variable in the waiter job. Is there another way @yannCI ? How exactly did you set it for your needs? I don’t really want my token in plaintext in our config
Hi Nicholas!
It might be a little late but just in case: I add the same issue as you (i.e. “Cannot iterate over null (null)”) and found out why. Iif, like I dit, you copy-pasted the code example, there is a small difference between the API token’s name as an env var and the way it’s used id the cose.
In the settings => CCI_Token
In the code (in the header of the curl command) => CCI_TOKEN
(all caps)
Changing my code to CCI_Token
made it work as expected.
Hope it’ll help!
As I write this, it’s been five years and ten months since the first request for “Option to allow failures in Fan-In/Out Workflow” [apparently I can’t include links, but that’s at circleci DOT canny DOT io].
I’m trying to instrument a bloated test suite, so we can get some visibility into which parts we might get the most benefit from removing first. I’ve worked out how to persist files from each parallel job in the workspace and have a “fan-in” job compile the results from parallel jobs into one artifact at the end… but if any of our 60k(!) tests fail (NB: some of them are flaky) then that fan-in step doesn’t run.
Having to spin up a container and have it poll for 30-40 minutes while we run a LOT of other jobs in parallel seems like a crude workaround, but if that’s what works, I’ll hold my nose and code it. But…
If I use this technique, won’t it stop working when my personal API token expires? Is there a reason the V2 API doesn’t support project tokens?