Can I handle a non-JSON response in node-rest-client POST method?
This is the error and response i'm getting:
response: [PURGED], error: [SyntaxError: Unexpected token P in JSON at position 0]
Can I somehow avoid getting an error? The function does what is requested. I suppose creating a custom parser is a solution? I don't understand how to achieve it though.