-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
While developing new function template I found an obscure bug.
This code works:
exports.handler = function(context, event, callback) {
let twiml = new Twilio.twiml.MessagingResponse();
twiml.message('Hello World');
callback(null, twiml);
};
But if you import Twilio
explicitly:
const Twilio = require('twilio');
exports.handler = function(context, event, callback) {
let twiml = new Twilio.twiml.MessagingResponse();
twiml.message('Hello World');
callback(null, twiml);
};
It will throw an error on the callback
line that it failed to convert a circular JSON.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working