HTTP Request for Twilio give me error

Hi,
I want to send “image” with my Twilio “Send” request, but I believe Twilio node is not allowing this. So, I want to use HTTP Request node to send a simple “Post” request to my API, but it is giving me error.
I am using “Get” method in as similar manner and it is working fine, but “POST” to send message does not work. Can someone help? thank you.
Please see attache document for the error.

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @sanjsoft, welcome to the community!

I am sorry you are having trouble. Twilio’s documentation on the error at Error 21604 | Twilio suggests this could come down to an invalid phone number being used.

Can you confirm which request exactly you were trying to send and which format you were using for your phone number?

I was able to fix this. You have to pass in a “Header” parameter Content-Type: application/x-www-form-urlencoded
Without this the HTTP call does not work

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.