Hi Team,
I’ve set up Twilio integration with FrappeCRM to make outbound calls directly from the Leads page. The call initiation works fine — the call connects successfully — but the Frappe side does not receive any callback or TwiML response from Twilio after the call is connected.
In the error logs, a TypeError ('NoneType' object is not iterable) is recorded, which suggests that Frappe might be receiving an empty or improperly formatted payload from Twilio’s callback URL. Additionally, Twilio’s console shows an error related to response size being greater than 64KB, which could indicate that the TwiML or response body being returned from Frappe exceeds the allowed limit.
What I’ve Verified
- Outbound call requests are being triggered correctly from Frappe.
- The callback URL is accessible publicly.
- Twilio credentials and endpoint configurations are valid.
- No permission or network-level issue observed.
Frappe should receive a valid callback or TwiML response from Twilio once the call connects, and process the response without error.
Actual Behavior
- The call connects successfully, but no valid response is returned to Frappe.
- A
TypeErrorappears in the Frappe error log. - Twilio logs an error indicating the response size is too large.
Requesting for Input
- Could this be related to how Frappe handles external webhook callbacks or larger TwiML responses?
- Would adding validation or truncation to the response help ensure compatibility with Twilio’s 64KB response limit?
Any insights or suggestions on handling this scenario in a Frappe-integrated setup would be greatly appreciated.
Thanks!