ConversationInstance.messages() throws "Parameter 'sid' is not valid" when listing messages
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 50/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- nodejs, typescript
- Domain
- api
Research direction
The stack trace points at twilio/lib/rest/conversations/v1/conversation.js: the ConversationContextImpl constructor (line 33), the get _proxy getter (line 272) and ConversationInstance.messages (line 311). Start by comparing how the sid is passed into the context between 6.0.2 and 6.1.2, since the report says it regressed in 6.1.2. Done when conversations[0].messages().list() resolves without the 'sid' error and a test covers that call.
Written by the indexing model from the issue text.
Description
Description
Calling messages().list() on a conversation returned by conversations.list() throws an error indicating that some sid parameter is invalid.
Steps to reproduce
const conversations = await client.conversations.v1.conversations.list();
console.log(await conversations[0].messages().list());
The call throws the following error:
Error: Parameter 'sid' is not valid.
at new ConversationContextImpl (twilio/lib/rest/conversations/v1/conversation.js:33:19)
at get _proxy (twilio/lib/rest/conversations/v1/conversation.js:272:17)
at ConversationInstance.messages (twilio/lib/rest/conversations/v1/conversation.js:311:21)
at run (twilio.js:7:41)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Affected versions
- Fails in 6.1.2
- Works in 6.0.2
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 568
- Avg merge
- 12h 52m
- Merged PRs (30d)
- 7
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from twilio/twilio-node
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
twilio/twilio-node#1241 ·
Maintainers usually reply within 1 day
-
twilio.webhook() rejects valid requests when the query string has an encoded `?` and a `+` spacePossibly taken @bardrop claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
twilio/twilio-node#1232 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
twilio/twilio-node#1214 ·
Maintainers usually reply within 1 day
-
Regression: Bulk Exports specific-day `fetch()` returns `void` instead of `DayInstance` in 6.1.0Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
twilio/twilio-node#1207 · 4 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
ConversationRelayAttributes defines speechtimeout (lowercase) but TwiML spec requires speechTimeout (camelCase)Possibly taken @Hashim1999164 claimed this 116 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
twilio/twilio-node#1192 ·
Maintainers usually reply within 1 day
All issues in twilio/twilio-node
Similar issues
-
area:plugins kind:bug priority:p2 ready
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Escaped `*` followed by `*` (`\**`) never matchesPossibly taken @bardrop claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
editorconfig/editorconfig-core-js#172 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vega/vega-webgpu#40 ·
-
type: bug 🐛
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
puckeditor/puck#1929 ·
Maintainers usually reply within 1 day
-
compression() compresses every response at Brotli quality 11Possibly taken @staylor claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day