How Do You Troubleshoot the Message “jq: error…Cannot iterate over null”?

Problem scenario
You are running a jq command (e.g., piping output to jq). You receive message "jq: error…Cannot iterate over null." What should you do?

Change the word "Parameters" to "Parameter". By omitting an "s" from "Parameters", the error may go away.

Verify there is output. Try running the command without the "jq" utility if possible. This error can happen if there is no output to parse.

Leave a comment

Your email address will not be published. Required fields are marked *