You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
This is not a general Twilio feature request or bug report. It is a feature request for the twilio-node JavaScript package.
Problem Description
Hi,
We have an issue quite often when twilio message create never gets a response and twilio serverless function times out on runtime which has 10s hard limit.
We use v3.29.2.
`
client.messages
.create({
body: 'Hello from twilio-node',
to: '+12345678901', // Text your number
from: '+12345678901', // From a valid Twilio number
})
.then((message) => console.log(message.sid));
`
So given the example on such scenario it never proceeds to .then() and twilio serverless function gets runtime timeout.
Twilio support is asking for proof, we do have logging and we clearly see that twilio helper never proceeds to .then(), but that is not enough.
Maybe having an official built-in timeout for .create() would help better, because now we doing axios call to twilio helper instead with timeout of 5s in order to provide some proof of such issue.
Thanks
Proposed Solution
Provide timeout for .create() in order to terminate waiting for the response.
Alternatives Considered
Provide timeout for .create() in order to terminate waiting for the response.
Additional Information
No response
The text was updated successfully, but these errors were encountered:
We also ship logs to external source so we had to set wait timeout for 1s for each callback, otherwise twilio function terminates immediately and no logs shipped to external endpoint:
We also asked to extend timeout on our server-side vendor to wait for 10s from twilio (which is hard limit runtime) and only then timeout but with retries this probably does not make sense anymore.
Mostly timeout/retries for twilio client solved our issues because now we get a proper response from twilio client instantly and it does not hit a hard limit of 10s and runtime does not timeout without any response in case phone number is blocked or combination of twilio sender and receive is not allowed.
Preflight Checklist
Problem Description
Hi,
We have an issue quite often when twilio message create never gets a response and twilio serverless function times out on runtime which has 10s hard limit.
We use v3.29.2.
`
`
So given the example on such scenario it never proceeds to
.then()
and twilio serverless function gets runtime timeout.Twilio support is asking for proof, we do have logging and we clearly see that twilio helper never proceeds to
.then()
, but that is not enough.Maybe having an official built-in timeout for
.create()
would help better, because now we doingaxios
call to twilio helper instead with timeout of 5s in order to provide some proof of such issue.Thanks
Proposed Solution
Provide
timeout
for.create()
in order to terminate waiting for the response.Alternatives Considered
Provide
timeout
for.create()
in order to terminate waiting for the response.Additional Information
No response
The text was updated successfully, but these errors were encountered: