RocketChat / RocketChat/Rocket.Chat
SMS integration "File does not match filter [invalid-file]"
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
Sometimes I get an error from twilio when the user sends a message with text and file
{
"success": false,
"error": "File does not match filter [invalid-file]",
"errorType": "invalid-file"
}
I think it depends from https://github.com/RocketChat/Rocket.Chat/pull/18491
And this happens when the user sent a file on first (that the omnichannel room has not been created)
Steps to reproduce:
- Send message with file to whatsapp
Expected behavior:
The message is received in Rocket.Chat
Actual behavior:
Twilio reports an error
Server Setup Information:
- Version of Rocket.Chat Server: 3.6.3
- Operating System: debian
- Deployment Method: docker
- Number of Running Instances: 4
- DB Replicaset Oplog: enabled
Contributor 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.
Research direction
Review pull request #18491 and trace the WhatsApp/Twilio handling for a user's first message containing a file, using the reported invalid-file response as the starting symptom. Reproduce the described first-message case and confirm that the file message is received in Rocket.Chat without Twilio reporting the filter error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100