Errors caused by CW Manage API throws an Error object that includes a response property. The problem is, it is a steam. That stream should handled and JSON.parse() before adding it to the Error object and throwing it back to the requester.
This would be consistent with the way all other successful API requests are handled.
Errors caused by CW Manage API throws an
Error
object that includes aresponse
property. The problem is, it is a steam. That stream should handled andJSON.parse()
before adding it to theError
object and throwing it back to the requester.This would be consistent with the way all other successful API requests are handled.