twilio / twilio-node

Node.js helper library
MIT License
1.41k stars 513 forks source link

ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11) #85

Closed sarath-c-sandwich closed 9 years ago

sarath-c-sandwich commented 9 years ago

I used this module

exports.sendRegistrationSMS = function(registration){ client.sms.messages.create({ to: '+85578887887', from: cfg.TWILLIO.PHONE, body: 'Your PIN code: ' + registration.pin }, function(error, message) { if(error) log.debug('Sent SMS Error' + error.status); else { log.debug('Successfully Sent SMS to phone number: ' + registration.phone + 'with SMS ID: ' + message.sid); } });

In console it return this error message.

ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11)

kwhinnery commented 9 years ago

Not sure I fully understand the problem - I would recommend sending a note to help@twilio.com with a full code example that doesn't work, and let them know what the expected behavior is. We can help troubleshoot more effectively there. The GitHub issues are used only for actual issues with the module.

Thanks, -Kevin