Problem this snippet solves:
This codeshare has been deprecated due to a hosting platform corruption. I have moved code and conversation to a new record (on the same original URL) https://devcentra...
Thanks for the help, I have two nodes that have failed to pull config, when these are commented out of the script the html and json files are created ok.