CircleCI-Public / jira-connect-orb

Display the status of CircleCI workflows and deployments in Jira!
https://circleci.com/orbs/registry/orb/circleci/jira
MIT License
25 stars 27 forks source link

jq: error (at <stdin>:2): Cannot iterate over null (null) #20

Closed jupe closed 4 years ago

jupe commented 4 years ago

Orb version

circleci/jira@1.0.6

What happened

JIRA orbs fails unexpectedly:

Attempt to get Jira Issues from https://circleci.com/api/v1.1/project/github/<team>/<project>/44
jq: error (at <stdin>:2): Cannot iterate over null (null)
Exited with code 5

This issue seems to be about the same: https://discuss.circleci.com/t/jira-integration-failing-at-notify-command/31698

Expected behavior

Success run

levlaz commented 4 years ago

@eddiewebb we are getting more reports of this issue, it appears that this makes the orb not work at all. Can you or someone else take a look?

eddiewebb commented 4 years ago

@jupe - can you confirm that you are using a USER api token or a PROJECT token with scope: "All" ? Screen Shot 2019-12-02 at 4 52 50 PM

(@levlaz - We suspect that the build API is not returning results due to token permissions. We will need to fix the error, but want to confirm the cause first, so if there are other tickets, please poke at that)

jupe commented 4 years ago

I'm using Personal API Tokens.

jupe commented 4 years ago

I just tried circleci/jira@1.1.0 and still fails: jq: error (at <stdin>:2): Cannot iterate over null (null)

eddiewebb commented 4 years ago

We're pushing an update in #31 that includes token validation & much richer output that will isolate any issues. Sorry for those running into this issue!

KyleTryon commented 4 years ago

This issue should now be resolved. Please ensure you are using the latest version of this orb and confirm for us if you are still experiencing any issues by opening a new issue. Thank you.