Perhaps this was a change with the request module (I know they made some breaking changes at some point) - but adding json: true to the POST was causing null to be returned from cayley. Removing json: true and manually parsing in the response handler fixed this.
Perhaps this was a change with the request module (I know they made some breaking changes at some point) - but adding
json: true
to the POST was causingnull
to be returned from cayley. Removingjson: true
and manually parsing in the response handler fixed this.