Simple JSON client not sending PUT

15 views
Skip to first unread message

Nick Parsons

unread,
May 8, 2014, 2:31:32 AM5/8/14
to res...@googlegroups.com
I'm calling client.put and nothing is happening. Can't seem to spot the issue here. Are there any known issues with the JSON client?

var client = restify.createJsonClient({
});
 
client.put('/v1/users/' + job.user_id + '/jobs/' + job._id + '?key=' + apiKey + '&secret=' + apiSecret, {
status: 'failed'
}, function(err, req, res, obj) {
if (err) {
console.log(err);
return;
}
console.log(obj);
});
Reply all
Reply to author
Forward
0 new messages