bmlt-enabled / yap

Find meetings or someone to talk to over the phone leveraging a BMLT root server.
https://bmlt.app/yap
MIT License
9 stars 10 forks source link

Error - 12100 Document parse failure on GET to https://yap.nasouth.ie/meeting-search.php #345

Closed paulnagle closed 4 years ago

paulnagle commented 4 years ago

Describe the bug I am getting this error on every call that tries to return meeting list information.

What version are you running? 3.5.0

Did this happen on prior versions to the one you are running? Yes, I was testing 3.4 in the past week or so and the same issue was occurring.

To Reproduce Steps to reproduce the behavior:

  1. Dial the number +353 76 888 8877 , the webhook is set to https://yap.nasouth.ie/input-method.php?Digits=2&PlayTitle=1
  2. Choose 1 to search for meeting by state or province
  3. Say the location name
  4. Hear "We are sorry. An application error has occurred"

Expected behavior The meeting list is returned

Screenshots config.php

<?php
static $title = "This is the Narcotics Anonymous Ireland helpline.";
static $bmlt_root_server = "https://bmlt.nasouth.ie/main_server/";
static $google_maps_api_key = "*******";
static $twilio_account_sid = "*******";
static $twilio_auth_token = "*******";
static $bmlt_username = "irsc_admin";
static $bmlt_password = "*******";
static $mysql_hostname = "67.210.123.60";
static $mysql_username = "nasouth0_yapmin";
static $mysql_password = "*******";
static $mysql_database = "nasouth0_yap";
static $voice = "alice";
static $gather_language = "en-IE";
static $province_lookup = "true";
static $location_lookup_bias = "country:Ireland";
static $override_zip_code = "postcode";
static $sms_summary_page = "false";
static $include_map_link = "false";
static $sms_ask = "false";

Twilio Debugger

Request 
-> URL:  https://yap.nasouth.ie/meeting-search.php
-> Parameters:

CalledZip | ""
-- | --
ApiVersion | "2010-04-01"
Called | "+353768888877"
CallStatus | "in-progress"
CalledCity | ""
From | "+353868523943"
ToState | ""
CallerCountry | "IE"
Direction | "inbound"
AccountSid | "ACaf63bd03a50796a8aff34d6f1cf392ff"
CalledCountry | "IE"
CallerCity | ""
CallerState | ""
ToCity | ""
FromCountry | "IE"
Caller | "+353868523943"
ToZip | ""
FromCity | ""
CalledState | ""
To | "+353768888877"
CallSid | "CAc2e7b140eb7114254ab859647991d5df"
FromZip | ""
ToCountry | "IE"
CallerZip | ""
FromState | ""

-> Message Text: Msg=&parserMessage=Error+on+line+2+of+document++%3A+XML+document+structures+must+start+and+end+within+the+same+entity.+&ErrorCode=12100&LogLevel=ERROR

Response
-> Headers: 
Transfer-Encoding chunked
X-Cache MISS from Twilio-Cache
CF-Cache-Status DYNAMIC
Cache-Control no-store, no-cache, must-revalidate
CF-RAY 5429f9941d98cf04-IAD
Server cloudflare
X-Cache-Lookup MISS from Twilio-Cache:3128
X-Twilio-WebhookAttempt 1
Expires Thu, 19 Nov 1981 08:52:00 GMT
Pragma no-cache
Date Mon, 09 Dec 2019 21:12:02 GMT
Expect-CT max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Content-Type text/xml;charset=UTF-8
-> Body:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Say voice="alice" language="en-US">meeting information found, listing the top 5 results</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">number 1</Say>
    <Say voice="alice" language="en-US">Trinity</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">starts at Tuesday 8:00 PM</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">Fr. Mathew Quay, Cork</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">number 2</Say>
    <Say voice="alice" language="en-US">NA Meeting</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">starts at Tuesday 6:15 PM</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">Easons Hill, Cork</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">number 3</Say>
    <Say voice="alice" language="en-US">Women's Meeting</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">starts at Tuesday 7:30 PM</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">, Cork</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">number 4</Say>
    <Say voice="alice" language="en-US">NA Meeting</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">starts at Tuesday 8:30 PM</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">Glenfield Road, Kilmallock</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">number 5</Say>
    <Say voice="alice" language="en-US">NA Meeting</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">starts at Tuesday 8:30 PM</Say>
    <Pause length="1"/>
    <Say voice="alice" language="en-US">51 Marys Hall, Clonmel</Say>

Additional context The number that I have from Twilio is non sms capable. The only functions that it has are voice and fax. I suspect that this is the issue, but can't really confirm. I have no option from Twilio to get an Irish number that has SMS enabled.

This is a test install only, not in production. There is no urgency

dgershman commented 4 years ago

Looks like the XML is malformed.

dgershman commented 4 years ago

I wonder if there were any server errors? Also are you using CloudFlare?

dgershman commented 4 years ago

closing this, please re-open if you have more information