FG

Twilio

64 verified issues

๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 4 years ago

Dial in Twillio functions keeps calling multiple times

Steps to Reproduce Using the following [code block]` Both numbers get called as expected. The issue is that if I cancel a call on first phone, it starts ringing again until i cancel the call on both or accept on one or timeout happens. Is there a way to prevent that? The statusCallback function is the following, just used to log some extra stuff. [code block]`

Confidence89%
89%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshalmost 4 years ago

Twilio Verify VerificationCheck is out of date

Issue Summary Calling the following code example present in the Verification docs results in an exception- Code Snippet [code block] Exception/Log [code block] The phone is getting SMS with verification code. Moreover, its verified when checked in the logs on Twilio console, after calling the above function. But this exception makes it impossible for the application to know if the verification succeed or not. Steps to Reproduce 1. Call the verifications.create() method with required parameters to send SMS with code. 2. verificationChecks.create() method with previous phone number and correct code. Technical details: twilio-node version: 3.75.0 node version: 14.17.1

Confidence89%
89%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 10 years ago

Parse.com outdated module : Unable to complete HTTP request

Hi, Parse.com uses an old version of Twilio module. Since a few hours, this outdated version doesn't work anymore. Is this possible to provide back backward-compatibility as it used to work until today ? That's not really possible for us to migrate now to Parse-Server (and so, with an updated Twilio module). Thanks ! Edit : As @hramos pointed out, Parse.com is not using official Twilio npm module. I leave this message hoping someone at Twilio will try to update server to provide back compatibility...

Confidence88%
88%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshalmost 9 years ago

errors should inherit from the Error object

currently twilio errors are represented as a dictionary: [code block] it would be better if errors inherited from the Error js object. there are a few reasons for this: - Error objects have stack traces, which help you nail down where they originate - makes it possible for someone to throw a Twilio error (currently a dictionary). the JS behavior for throwing/catching non-Error objects is wonky at best and handling varies by library - mocha, raven-node behave oddly when you're using them without an Error object. It would be pretty straight forward to add considering there is already a `message` property on the object.

Confidence88%
88%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKsTwilio
Fresh8 months ago

[Bug] Invalid types in last update

Some of the changes in the following commit define types don't match the actual structure of the data causing type errors when attempting to access values as documented. For example, `lineTypeIntelligence: Record<string, object>` suggests that the shape would be: [code block] It should probably instead be `Record<string, any>`. Or, even better, it should contain the actual available keys and value types as documented. https://github.com/twilio/twilio-node/commit/49f3f2b147818bf03d0067ad7cc13fbcbaf72c7d#diff-55a60b51b684465835a0448f6efceb0ef9b0cb5ada598728e1594ebf2507deddR292

Confidence88%
88%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 2 years ago

[Vulnerability] patch axios vulnerability CVE 2023 45857

Issue Summary Current version of axios used by the library has a vulnerability. https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 I see a few PRs open for this already, but it is not being addressed. https://github.com/twilio/twilio-node/pull/971 https://github.com/twilio/twilio-node/pull/970 Steps to Reproduce 1. Install latest twilio-node dependency 2. Run snyk/github security scan Code Snippet [code block] Exception/Log [code block] Technical details: twilio-node version: 4.8.1 node version: v18.16.0

Confidence88%
88%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 10 years ago

160 character limit for 1600 character resource (sending text messages)

According to your documentation (https://www.twilio.com/docs/api/rest/sending-messages) text messages using the most recent Twilio API have a size limit of 1600 characters. However whenever I try to send a message over 160 characters (the old limit supposedly) I receive the following error: "message": "The message body exceeds the 160 character limit.", "code":21605", "moreInfo":"https://www.twilio.com/docs/errors/21605" I am using the nodeJS helper library and making the exact same call as the documentation described (again https://www.twilio.com/docs/api/rest/sending-messages)). Is it possible the Twilio nodeJS library is using the old API call and the documentation is incorrect?

Confidence88%
88%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 3 years ago

Can't compile typescript without adding @types/express

Issue Summary I'm not able to build a typescript project with this package just by adding the `twilio` and `@types/twilio` packages, when I build the solution. I am not using anything express related in terms of imports from twilio and my project is express free as well. If I install `@types/express` as a dev dependency then it will build, but I don't think that's how it's supposed to work. Steps to Reproduce 1. Create node typescript app 2. Install `twilio` as dependency and `@types/twilio` as dev dependency 3. Import twilio in a ts file, use the method for sending a basic message 4. Run `npm run build` Exception/Log [code block] Technical details: twilio-node version: 3.19.3 node version: 14.16.0

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 6 years ago

Support customParameters when calling js client using api calls

Hi, use case: We use twilio client(js) as part of our contact center platform. In response to certain type of callers in the queue, we ring certain agents using apis, and if they accept the call, only then the caller is whisked out of queue and conferenced with the agent. When calling a client using api, we want to piggyback extra details about the call like call id in the crm, so that extra details about the caller can be displayed to the agent. (This is not our exact flow, but simplified, to share the scenario)

Confidence87%
87%
Candidate Fix
1 fixโœ“ 2 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 5 years ago

Twilio Verify - requested resource /Services/.../VerificationCheck was not found

Issue Summary Seeing this in our sentry: `The requested resource /Services/VA.../VerificationCheck was not found` Customers are complaining, seems to be happening occasionally as can not reproduce locally? Trying to get a better idea. Steps to Reproduce 1) Type in phone number 2) Send API call to Twilio Verify to send verification code Code Snippet [code block] Exception/Log [code block] Technical details: twilio-node version: v3.50.0 node version: v12

Confidence87%
87%
Candidate Fix
1 fixโœ“ 2 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 6 years ago

TypeScript typed statusCallbackEvent writes invalid attribute value

As can be seen from the example code and its output below, `statusCallbackEvent` attribute ends up having wrong delimiter, comma instead of space, in the resulting XML, and this causes error on Twilio side. Version: 3.37.0 Code Snippet (main.ts) [code block] Output [code block]

Confidence87%
87%
Candidate Fix
1 fixโœ“ 2 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 3 years ago

TypeError [ERR_INVALID_ARG_TYPE] webhook when the request type is application/json

Issue Summary I was using Twilio Studio setting up an appointment reminder, for the confirmation widget, I setup the request and content as below: <img width="345" alt="image" src="https://user-images.githubusercontent.com/499870/95715064-f17bc880-0cb4-11eb-9e80-51ba415e32e5.png"> and my server code is simply like below: [code block] When the confirmation callback hit my server, Twilio webhook throws: [code block] I checked the twilio source code, mainly caused by this function: [code block] obviously if the request type is application/json, express will parse the request.body to an object right away, which causes the issue. By changing the request type to "Form URL Encoded" fixes my issue: <img width="291" alt="image" src="https://user-images.githubusercontent.com/499870/95715350-6b13b680-0cb5-11eb-924a-0cf9e315c0a4.png"> Steps to Reproduce 1. Set up Twilio webhook middleware in your express server 2. Set up a confirmation callback request to your server with request type to application/json Technical details: twilio-node version: twilio@3.49.4 node version: 10.x

Confidence86%
86%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 5 years ago

Unable to do paging from the built-in library file - /lib/base/page.js or /lib/rest/api/v2010/account/message.js

Hi, am unable to do paging concepts using the built-in file like page.js or message.js. My requirement is - want to fetch 1000 records at a time and get all the messages from each/list with help of nextpageuri. I tried to make connection of message.js with the below code snippet and it throws error. [code block] Please provide the sample code to get a list of messages(ex:1000) at a time and then recursively using nextpageuri concept get all the remaining messages until the nextpageuri is NULL.

Confidence85%
85%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshalmost 9 years ago

Wrong Timezone

Hi, don't know if it's a Twilio issue or just a Node.js issue, but the timezone with which SMSs are sent is wrong. Both my mobile device and computer (where the server is spinning) have CET as a configured timezone. Though all SMSs I'm receiving are in UTC (i.e. 2 hours behind). Any tips on how to fix this?

Confidence85%
85%
Candidate Fix
1 fixโœ“ 2 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshalmost 5 years ago

I got : TypeError: url.URL is not a constructor running examples with my account parameters

Hello, I tried to run several examples from https://www.twilio.com/docs/libraries/node and running code (with my account sid/token) [code block] I got error : `TypeError: url.URL is not a constructor ` I tried to debug this issue in Twilio.js:258 and found : https://prnt.sc/w79oys and ref to undefined element https://prnt.sc/w79pqi and I see ref 10 years old https://prnt.sc/w79q4s can it be reason of my error and why so ? I tried version of twilio 3.54.1 (latest) and 3.54.0 but I have the same error and the same data I see debugging... In my OS : [code block] Why so and how it can be fixed ? Thanks!

Confidence85%
85%
Candidate Fix
1 fixโœ“ 2 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshalmost 6 years ago

Unexpected token U in JSON

Issue Summary It throws an unhandled exception. Code Snippet [code block] Exception/Log [code block] Technical details: twilio-node version: 3.43.0 node version: 12.10.0

Confidence84%
84%
Candidate Fix
1 fixโœ“ 2 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 3 years ago

Project package.json contains vulnerable version of jsonwebtoken

Issue Summary jsonwebtoken v9 has been released to address vulnerability found in 8.51 and lower. Steps to Reproduce Look at the package.json Suggest updating twilio dependency to 9 so users of twilio can keep the package and avoid security warning messages. Resource: https://unit42.paloaltonetworks.com/jsonwebtoken-vulnerability-cve-2022-23529/

Confidence84%
84%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 5 years ago

Not getting the conference logs with twilio client when conference is created by dial() fn

Issue Summary I am not able to see the conference I just created using the dial() function. I need this so I can grab the conference sid off of it to make another outbound call with twilio client. But the ironic thing is that the conference I create using dial() appears in the conference logs on twilio's website. Another weird thing... The only time I am able to see conference logs using twilio client is when I create the conference through twilio client. Steps to Reproduce 1. Create Conference using twiml 2. Try to get the status of that conference using twilio client Code Snippet [code block] Technical details: twilio-node version: node version:

Confidence84%
84%
Candidate Fix
1 fixโœ“ 2 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 2 years ago

Latest dayjs version causes exception in client.messages.create()

Issue Summary Calling client.messages.create() using version 1.11.7 of dayjs throws an exception as shown below. Downgrading to version 1.11.5 resolves the issue. Steps to Reproduce 1. send a message using client.messages.create() as shown in the code snippet Code Snippet [code block] Exception/Log [code block] Technical details: twilio-node version: 4.11.0 dayjs version: 1.11.7 * node version: 18.15.0

Confidence84%
84%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 3 years ago

Wrong `PromptAttributes` interface implementation

Issue Summary Right now I'm following the docs to use `Pay.Prompt` noun but there is a problem while using TypeScript. The interface includes the following: [code block] And as we can see the attribute is `for_` (with the `_`) and inside the docs: https://www.twilio.com/es-mx/docs/voice/twiml/pay/prompt#for It's `for` only (without the `_`), if we try to use `Pay.Prompt` like the following: [code block] It throws an error: `Argument of type '{ for: string; }' is not assignable to parameter of type 'PromptAttributes'.` So, we need to use `for_` but the Twilio parser does not detect `for_`. Another thing is that it looks like the docs are also out of date: The errorTypes are: [code block] And there is no `invalid-postal-code` for example when the current docs state that it is actually there. Maybe it could be another good idea to add the usage of the errorTypes inside the docs? so we know it's an array and how to use it with `cardType` could be really useful. Steps to Reproduce 1. Create a Twilio Serverless function 2. Add TS support 3. Use the `Pay` verb 4. Add the `Prompt` noun support Code Snippet [code block] Exception/Log [code block] Technical details: twilio-node version: ^3.80.0 twilio/runtime-handler: ^1.25.0 node version: 16.16.0 typescript: 4.0.0 ts-node: 10.7.0 @types/node 17.0.21 Workaround: There is a workaround by adding `// @ts-ignore` above the line like: [code block]

Confidence84%
84%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 2 years ago

Publish 4.19.1?

Need to pick up the axios security update.

Confidence80%
80%
โœ“ Verified Fix Available
1 fixโœ“ 4 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 5 years ago

TypeError: url.URL is not a constructor

Issue Summary I am using latest version of this library 3.44.0. (I see from the npm version log. it's just a day ago!) and having the following error. TypeError: url.URL is not a constructor when I try to send message. the code is copied from doc. https://www.twilio.com/docs/sms/quickstart/node Steps to Reproduce 1. set up simple react project with create-react-app 2. npm install twilio 3. execute following code App.js Code Snippet [code block] Exception/Log [code block] Technical details: twilio-node version: 3.44.0 node version: 12.13.0

Confidence78%
78%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ”Œ APIs & SDKsTwilio
Fresh5 months ago

Express webhook not authenticating

Issue Summary The validation methods in webhooks won't validate messages initiated by a user on Whatsapp. Steps to Reproduce Pretty much an interactive replica of How to secure Twilio webhook URLs in Node.js 1. Go to the sample project on https://replit.com/@OlegAzava/ExpressWithTwilioWebhook#index.js and wake up the Replit 2. Replace the TWILIO_AUTH_TOKEN with a working one <img width="672" alt="image" src="https://user-images.githubusercontent.com/3731173/223853291-1c332d87-71db-4ca4-adbc-188b07e3e12c.png"> 3. Configure a Whatsapp sender in Twilio to send messages to https://ExpressWithTwilioWebhook.olegazava.repl.co/api/message 4. Send a message from within Whatsapp to the target phone number Code Snippet [code block] Exception/Log Signatures comparison fails Technical details: twilio-node version: 4.8.0 node version: v18.12.1

Confidence77%
77%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ”Œ APIs & SDKsTwilio
Fresh5 months ago

Twilio client is of type of any when using Twilio import in typescript

Issue Summary When using Twilio v4 library the Twilio client is of type any. Steps to Reproduce [code block] the type of twilio_client is any in version 4 whereas in version 3 it used to be the correct type i.e. TwilioClient. Code Snippet [code block] Technical details: twilio-node version: v4 node version: v14.17.3

Confidence77%
77%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 3 years ago

Could you replace "q" to Promise es6?

Could you replace "q" to Promise es6?

Confidence77%
77%
โœ“ Verified Fix Available
1 fixโœ“ 4 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 6 years ago

443 Error not found on twilio.messages.create

Hi I have a problem and I cannot find a solution. I do not know why I'm getting this error bellow: [code block] Of course, twilioError is my custom name of this object. The piece of code which I was trying to run is here: [code block] Here is also my twilio.js which I've imported to this file above: [code block] I really want to know how to resolve this. I went through all Twilio's documentation and I didn't find an explanation. Even on the first page, at the very bottom, is mentioned about possible errors on sending messages and there is no information about 443 Error. My versions: [code block] As you can see I also used firebase to deploy my app. Are there some restrictions between firebase and twilio? If someone knows what I am doing wrong or where is the problem I will be grateful for helping me. Thanks!

Confidence76%
76%
โœ“ Verified Fix Available
1 fixโœ“ 4 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 7 years ago

Issue with Typescript

I have been following this documentation(https://github.com/TwilioDevEd/api-snippets/blob/master/rest/access-tokens/video-example/video-example.3.x.js) to generate a auth token. Using `"twilio": "^3.19.1"` with `"@types/twilio": "0.0.9",` seems like the `VideoGrant` is unavailable and the Typescript and `AccessToken.toJwt()` requires a String parameter which is not necessary. I ended up doing the following, but it would be nice to fix these. Version: ^3.19.1 Code Snippet [code block] Thanks

Confidence75%
75%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 3 years ago

[vulnerabilities][high] jsonwebtoken has insecure input validation in jwt.verify function

New jsonwebtoken vulnerability has been published. https://github.com/advisories/GHSA-27h2-hvpr-p74q

Confidence74%
74%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 10 years ago

The From phone number +15005550006 is not a valid, SMS-capable inbound phone number or short code for your account

I'm using a test account and trying to test SMS but it throws- [code block] According to the doc, only number usable in From is " +15005550006" then why does it throw the error? https://www.twilio.com/docs/api/rest/test-credentials#test-sms-messages-parameters-From What else can be used in test account?

Confidence74%
74%
โœ“ Verified Fix Available
1 fixโœ“ 6 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Feature request: Typescript definitions for 3.0 API

Please provide Typescript definitions, it makes a world of difference. Currently the 2.0 API bindings are provided for Twilio but not for 3.0.

Confidence69%
69%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Twilio Verify VerificationCheck is out of date.

The underlying API for verify has changed but the documentation / library has yet to be updated to reflect these changes. This is very misleading due to the documentation directly stating that `V2` should be used instead of `V1`. Reference: `V1 of the API will be maintained for the time being, but any new features and development will be on Version 2. We encourage you to do any new development with API V2.` Version: `3.32.0` Code Snippet [code block] Exception/Log [code block] Steps to Reproduce 1. Make request defined in `Code Snippet` 2. Get error defined in `Exception Log` Feature Request N/A

Confidence66%
66%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Type Script Bindings

Feature Request Please add typescript bindings so that developers who opt-in to using Twilio-Node with TypeScript, are able to take advantage of the TypeScript compiler to dramatically reduce the number of bugs created in their integration code.

Confidence65%
65%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

TypeError: Converting circular structure to JSON

Version: 3.8.1 Code Snippet [code block] Exception/Log [code block]

Confidence61%
61%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Incorrect Typescript types on MessageInstance

Issue Summary The `MessageInstance` class looks as if it contains incorrect types for some of its instance properties. Properties such as `errorCode` and `errorMessage` can be nullable according to the documentation so I would think that the type of `errorCode` should be `number | null` rather than simply `number` as it currently is. Props types that seem incorrect: - `errorCode`: should be `number | null` rather than `number` - `errorMessage`: should be `string | null` rather than `string` - `price`: should be `string | null` rather than `string` - `priceUnit`: should be `string | null` rather than `string` - `messagingServiceSid`: should be `string | null` rather than `string` (From the docs: "The SID of the Messaging Service used with the message. The value is null if a Messaging Service was not used.") Code Snippet Compare the type of the instance property `errorCode` here [code block] to the sample JSON response in the documentation: [code block] Exception/Log [code block] Technical details: twilio-node version: `v3.49.0` node version: `12.8.3`

Confidence61%
61%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Socket hang up Error

Hello Twilio team, I faced with the issue that from time to time I got a socket hang up error. After investigating I found out that there was a problem with your dependency module request: https://github.com/request/request/issues/2047 I would be grateful if you could address the issue.

Confidence59%
59%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Wrong validation on accountSid when using API Sid/Api Key to initialize the client

Issue Summary When initialize the client using API Sid/Key, validation still applied to the username field which will check if the field starts with 'AC'. But API Sid should start with 'SK'. Steps to Reproduce Initialize the twilio SDK client using API Sid/Key Code Snippet [code block] Exception/Log [code block] Technical details: twilio-node version: 3.48.0 node version: 13.12.0

Confidence57%
57%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Upgrade moment to 2.19.3

NSP check fails with `Regular Expression Denial of Service` error. Required moment upgrade to 2.19.3

Confidence56%
56%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Twilio.sendMessage, price in response data is null

I used Twilio.sendMessage to send SMS: [code block] Here is the sample of the `responseData`: (some fields are masked) [code block] and the field `price` become null

Confidence55%
55%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 18 hours ago

Invalid types for nested fields

Some of the types exported by this package aren't valid. There's a mix of variable casing and it doesn't seem like results get normalized correctly For example in this program: [code block] [code block] `result` is of type `NumberInstance` and it sets `outboundCallPrices` but the actual type of that field says a property `currentPrice` should exist but it's never converted from `current_price` into `currentPrice`. `inboundCallPrice` can also be null, but that's not reflected in the field type: https://github.com/twilio/twilio-node/blob/7d9dd1fe9d2bc7e68f90a66e05785586ab20b270/src/rest/pricing/v2/voice/number.ts#L208 The source type descriptions in the openapi spec correctly mentions that both of these are nullable: https://github.com/twilio/twilio-oai/blob/bcf1d20ba0710f272748c3d23312498e28a99315/spec/yaml/twilio_pricing_v2.yaml#L304-L341

Confidence53%
53%
Candidate Fix
2 fixes
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

5.10.0: crashes at startup when bundled with esbuild

I think the new dual CJS/ESM export is causing an error. 5.9 worked fine, but bundling my node project with esbuild in 5.10 is causing this error. [code block]

Confidence53%
53%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

How to get Twilio class type?

Issue Summary With v3.84, we were able to pull in the type of the Twilio client and reference it in our application: [code block] However, now with v4.7, the same code not longer works, with the following message: [code block] However, `typeof Twilio` does not work and is not what we're looking for. We are looking to reference an instance of the Twilio class. Any advice on how to do this with v4?

Confidence53%
53%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Capabilities List filters for AvailablePhoneNumbers resource don't work AT ALL

Note: These issues are for bugs and feature requests for the helper libraries. If you need help or support, please email help@twilio.com and one of our experts will assist you! 3.17.0 Code Snippet [code block] [code block] [code block] Exception/Log [code block] Steps to Reproduce 1. Request a list of available phone numbers for purchase using either the voiceEnabled, smsEnabled, or mmsEnabled list filters. 2. Observe that the list of phone numbers returns phone numbers with capabilities.voice, capabilities.SMS, or capabilities.MMS return true when they should return false depending on which code snippet you run.

Confidence52%
52%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Realtime Google Speech Transcription

I tried Twilio Speech recognition and was not so happy with the accuracy of conversion to text. I wanted to use Google Speech API for transcription and I was following this article: https://medium.com/@mheavers/better-twilio-transcriptions-with-the-google-web-speech-api-eb24274c5e3 There, they record the speech and then send the details to Google Speech API. Is there any way to do it realtime without hanging up the call. Something like a replacement for Twilio Speech Recognition. Thanks in advance.

Confidence52%
52%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Unhandled Rejection in Twilio SDK When Catching Exceptions in Application

Issue Summary Twilio SDK has unhandled rejection in SDK and can't catch it from the application. This issue causes application termination. Steps to Reproduce 1. See the code snippet Code Snippet [code block] Exception/Log [code block] Technical details: twilio-node version: 4.14.0 node version: 18.14.1

Confidence51%
51%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Method Update using TaskRouter Worker not working.

Issue Summary After creating a TaskRouter Worker capacity token and using it in front-end the update method of Workers doesn't work. With PHP the update method works fine, but with node it doesn't work. I am following a guide here `https://www.twilio.com/docs/taskrouter/js-sdk/workspace/worker` Code Snippet [code block] Exception/Log In back-end it doesn't show any errors only when using it in front-end. Technical details: twilio-node version: 3.43.0 twilio taskrouter cdn version: 1.20 * node version: 12.10.0

Confidence51%
51%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Twillo verify not working

Issue Summary whenever I call this my service I keep on getting `Cannot read property 'get' of undefined` but when I comment it out and return dummy data instead my code works or is it cause am using a trial account Steps to Reproduce 1. Run the script on a nodejs server Code Snippet [code block] Exception/Log [code block] Technical details: twilio-node version: node version:

Confidence51%
51%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

[Feature Request] Add XML Comment into TwiML

Feature Request [code block] This should output XML comment into the output [code block]

Confidence51%
51%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Broken typescript compilation

I am trying to run [code block] and i get errors: [code block] Twilio version: - "twilio": "3.49.0", Typescript version: - "typescript": "3.7.3", Node version: 12 When i downgrade to "twilio": "3.34.0" the typescript compilation works. Thank you

Confidence51%
51%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

No sendMessage function on the parse cloud module

Some function are not defined when i use this module on parse cloud. sendSMS only send 70 chars so we need sendMessage function.

Confidence51%
51%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsTwilio
Freshabout 19 hours ago

Unhandled request error event (ETIMEDOUT)

Issue Summary Very rarely, I'm seeing an unhandled error event (terminating the Node process) with the message/code `ETIMEDOUT` being emitted in a piece of code that communicates with the Twilio API. The code in question is calling `users(id).userChannels.list()` in this case, but I don't think the specific endpoint actually matters. The event is emitted by the `request` module used by `twilio-node`. I'm not entirely sure if this is a bug in twilio-node or rather in request, but it seems to me that maybe an event handling function should be attached to the `http` call in `/lib/base/RequestClient.js`, which could catch sporadic error events, and reject the returned promise in those cases. The request docs only mention handling events in the context of streams, but this issue looks somewhat related. Steps to Reproduce Happens once in a blue moon, so not exactly easily reproducible. Exception/Log [code block] (no mention of twilio-node here, but it is the only dependency in this context that uses request) Technical details: twilio-node version: 3.39.3 node version: v12.13.1

Confidence50%
50%
Candidate Fix
1 fix