Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twiml return Error 12100, Message Document parse failure #808

Open
mzainmushtaq33 opened this issue May 9, 2024 · 0 comments
Open

Twiml return Error 12100, Message Document parse failure #808

mzainmushtaq33 opened this issue May 9, 2024 · 0 comments

Comments

@mzainmushtaq33
Copy link

Issue Summary

I'm facing an issue when return Twiml in webhook. It says An application error has been occurs. when i see twilio error logs it return error Error 12100 with message Document Parse Failure.
I'm using Twilio php sdk twilio/sdk 8.0

Steps to Reproduce

Twilio Webhook
Use PHP library VoiceResponse

Code Snippet

PHP

 $response = new VoiceResponse();
            $callerId=$twilioCallSetting->friendly_name;
            $dial = $response->dial('');
            $dial->client($callerId);

            Log::channel('twilioCallHook')->info("Client :".$callerId);
            return $response;

Exception/Log

Return this in Webhook response body
<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Dial>
        <Client>La Lavie</Client>
    </Dial>
</Response> 

Technical details:

  • twilio-php version: 8.0
  • php version:8.1
    image
    Screenshot 2024-05-09 at 8 44 51 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant