Closed kumarmugu closed 7 years ago
Hi I think your problem is not the one you think it is. I've tried with a local server returning no data at all and everything works fine.
Please send more information about the crash to evaluate if if this is or is not an issue.
Thanks.
node-rest-client is crashing if the remote web-service is returning no date (Http code- 200 or 201. But no data).
This is because of the following line of code https://github.com/aacerox/node-rest-client/blob/master/lib/node-rest-client.js#L437
I have overcome this issue by fixing following way