Error with Twilio SMS, but only for some numbers, HTTP response 400: Cannot destructure property 'httpHeaders' of 'connectionData' as it is undefined. #33194
For some reason when using Rocket Chat with Twilio SMS, I am getting this error message. The odd part is, it works fine if I'm texting from a regular cell phone number, but when texting from certain numbers like Google Voice, it fails with the error as the body of the HTTP request:
{"success":false,"error":"Cannot destructure property 'httpHeaders' of 'connectionData' as it is undefined."}
I don't see anything mentioned in the RocketChat Reports log area.
Twilio shows http response code 400 with message bad request. Twilio error is 11200 which is HTTP retrieval failure.
Again, if I send a message from a regular cell phone number, it appears to work. This is not a Google Voice issue, because I can text back and forth between all other numbers. This doesn't appear to be a Twilio issue, because Twilio is reporting HTTP status code 400.
My firewall is not blocking it, because in watching the logs I do see the POST request hit my server.
Steps to reproduce:
Text number from cell phone number to confirm working
Create a free Google Voice account (takes < 5 minutes) and send a test message to RocketChat SMS number
Expected behavior:
SMS should appear
Actual behavior:
SMS does not appear, HTTP status code 400 results
Server Setup Information:
Version of Rocket.Chat Server: 6.11.1
License Type: free
Number of Users: 1
Operating System: Debian
Deployment Method: Docker
Number of Running Instances: 1
DB Replicaset Oplog: -
NodeJS Version: -
MongoDB Version: -
Client Setup Information
Desktop App or Browser Version: Chrome latest as of 2024-09-24 (not client issue)
Operating System: Windows 11 (not client issue)
Additional context
-
Relevant logs:
I am getting these logs, but not sure if it's related. When I send a text and it goes through, I see 2x new DeprecationWarning messages. When I send a text that results in 400, it does NOT create one of these entries. This may be yet a separate issue, not sure.
{"level":40,"time":"2024-09-02T06:06:48.640Z","pid":1,"hostname":"*****","name":"DeprecationWarning","section":"API","msg":"The parameter \"query\" in the endpoint \"/api/v1/integrations.list\" is deprecated and will be removed on version 7.0.0"}
{"level":40,"time":"2024-09-02T06:20:29.543Z","pid":1,"hostname":"*****","name":"DeprecationWarning","section":"METHOD","msg":"The method \"livechat:setCustomField\" is deprecated and will be removed on version 7.0.0"}
{"level":40,"time":"2024-09-02T06:20:29.547Z","pid":1,"hostname":"*****","name":"DeprecationWarning","section":"METHOD","msg":"The method \"livechat:setCustomField\" is deprecated and will be removed on version 7.0.0"}
{"level":40,"time":"2024-09-02T06:32:49.470Z","pid":1,"hostname":"*****","name":"DeprecationWarning","section":"METHOD","msg":"The method \"livechat:setCustomField\" is deprecated and will be removed on version 7.0.0"}
{"level":40,"time":"2024-09-02T06:32:49.475Z","pid":1,"hostname":"*****","name":"DeprecationWarning","section":"METHOD","msg":"The method \"livechat:setCustomField\" is deprecated and will be removed on version 7.0.0"}
{"level":40,"time":"2024-09-02T06:35:51.210Z","pid":1,"hostname":"*****","name":"DeprecationWarning","section":"METHOD","msg":"The method \"livechat:setCustomField\" is deprecated and will be removed on version 7.0.0"}
{"level":40,"time":"2024-09-02T06:35:51.213Z","pid":1,"hostname":"*****","name":"DeprecationWarning","section":"METHOD","msg":"The method \"livechat:setCustomField\" is deprecated and will be removed on version 7.0.0"}
Description:
For some reason when using Rocket Chat with Twilio SMS, I am getting this error message. The odd part is, it works fine if I'm texting from a regular cell phone number, but when texting from certain numbers like Google Voice, it fails with the error as the body of the HTTP request:
I don't see anything mentioned in the RocketChat Reports log area.
Twilio shows http response code
400
with messagebad request
. Twilio error is11200
which is HTTP retrieval failure.Again, if I send a message from a regular cell phone number, it appears to work. This is not a Google Voice issue, because I can text back and forth between all other numbers. This doesn't appear to be a Twilio issue, because Twilio is reporting HTTP status code 400.
My firewall is not blocking it, because in watching the logs I do see the POST request hit my server.
Steps to reproduce:
Expected behavior:
SMS should appear
Actual behavior:
SMS does not appear, HTTP status code 400 results
Server Setup Information:
Client Setup Information
Additional context
-
Relevant logs:
I am getting these logs, but not sure if it's related. When I send a text and it goes through, I see 2x new
DeprecationWarning
messages. When I send a text that results in 400, it does NOT create one of these entries. This may be yet a separate issue, not sure.FYI I tried reading the collecting logs article linked in your issue template, but the URL appears to have been moved? Looks like the GitHub issue template needs to be updated. https://rocket.chat/docs/contributing/reporting-issues#gathering-logs