mindofbeholderM
Windmill3y ago
11 replies
mindofbeholder

Failed to deserialize form body on twilio POSTs to Windmill intake webhook

Windmill version: CE v1.208.0-12-gd82027cbf
Webhook: https://windmill.redacted.dev/api/w/home/jobs/run_wait_result/f/f/twilio/twilio_intake?token=redacted

I have twilio setup to post to a webhook trigger in a flow.
Twilio sends texts as x-www-form-urlencoded payloads.
I am seeing the following error response from Windmill on POST: Failed to deserialize form body: invalid type: map, expected option
I can reproduce this behavior in Postman.

Sample payload:
ToCountry:US
ToState:AK
SmsMessageSid:SMredacted
NumMedia:0
ToCity:
FromZip:55555
SmsSid:SMredacted
FromState:AK
SmsStatus:received
FromCity:REDACTED
Body:Test
FromCountry:US
To:+15555555
MessagingServiceSid:MGredacted
ToZip:
NumSegments:1
MessageSid:SMredacted
AccountSid:ACredacted
From:+15555555
ApiVersion:2010-04-01
Was this page helpful?