I would like to make a
getJSON call in a shortcode, but I don’t want failures to abort the build. I’m using 0.55.5, and based on both #5643 and #5076 I thought that a
getJSON failure should not abort the build. But if, e.g., I try to fetch information about a github pull request that doesn’t exit, the build fails immediately with:
ERROR 2019/05/08 23:28:29 Failed to get JSON resource "http://api.github.com/repos/ansible/ansible/pulls/does-not-exist": Failed to retrieve remote file: Not Found
Is there a way to respond to this failure (e.g., provide some alternative text) rather than having the build blow up? Given the existing issues I didn’t want to open a new one without checking to make sure I wasn’t missing something obvious.