Under certain circumstances cq_jcr can fail. Produced error messages are not always clear. Please improve error handling, i.e. include raw request & response to make debugging easier.
Example
[2018-01-11T11:35:48+01:00] INFO: Processing cq_jcr[Author: /content/dam/xxxxx/app_assets/yyyyy/jcr:content] action create (example-webapp::author_conf line 111)
[2018-01-11T11:35:48+01:00] FATAL: Unable to parse as JSON: 743: unexpected token at ''
...
Error executing action `create` on resource 'cq_jcr[Author: /content/dam/xxxxx/app_assets/yyyyy/jcr:content]'
SystemExit
----------
exit
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/cq/libraries/_http_helper.rb:40:in `rescue in json_to_hash'
/var/chef/cache/cookbooks/cq/libraries/_http_helper.rb:36:in `json_to_hash'
/var/chef/cache/cookbooks/cq/libraries/provider_cq_jcr.rb:150:in `node_info'
/var/chef/cache/cookbooks/cq/libraries/provider_cq_jcr.rb:43:in `load_current_resource'
Under certain circumstances
cq_jcrcan fail. Produced error messages are not always clear. Please improve error handling, i.e. include raw request & response to make debugging easier.Example