Page 1 of 1

If data element succeeds, or fails, what does log show?

Posted: Tue Sep 25, 2007 4:50 pm
by moshe
I'm pretty certain that a data element has failed to actually retrieve data; the code is completely debugged (albeit on a different platform) and I know what log messages to execpt after a successful retrieval.

What I have now in the log file is:
Attempting to fetch http://(removed)/getUpdates.php
:::::::LOG:::::::: data details
VXI::foreach_element()
What I'd expect to see is "data details" and some information about the retrieved data, for debugging. The lack of any info whatsoever indicates that the retrieve (apparently) failed to happen.

I don't see error.badfetch, but on the other hand I don't see any indication that any data whatsoever were retrieved. What does a successful data element transfer look like? What does a failure look like?

IVR app would accept the valid xml from the remote xml file

Posted: Tue Sep 25, 2007 5:31 pm
by support
Hi,

One possible failure that could occur is if a data element made reference to a remote xml file that did not exist. The IVR error log would look something like this:

Code: Select all

Attempting to fetch http://www.example.com/~victor/baddatatag2.xml
HTTP/1.1 404 Not Found - http://www.example.com/~victor/baddatatag2.xml
DocumentParser::FetchXML - could not open URL: http://www.example.com/~victor/baddatatag2.xml
errno: 203 uri http://www.example.com/~victor/baddatatag2.xml
received event: error.badfetch 
Another possible failure that could occur is if the data element made reference to a bad xml file with an error in it.

For an IVR example, here's a what a bad xml file would look like:

Code: Select all

<?xml version="1.0"?>
<boolean>
<asdf>
false
</boolean>
The IVR error log would show:

Code: Select all

Attempting to fetch http://www.example.com/~victor/baddatatag.xml
Parse error in file "http://www.example.com/~victor/baddatatag.xml", invalid XML
errno: 205 uri http://www.example.com/~victor/baddatatag.xml
received event: error.badfetch 
However, for a successful data element transfer, the IVR log would show something like this:

Code: Select all

Attempting to fetch http://www.example.com/~victor/datatag.xml
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS text/plain;charset=wchar_t for:
--------- 
Basically, the IVR application would accept the valid xml from the remote xml file and move on with the rest of the script.

Hope this helps.

Regards,
Plum Support

Posted: Tue Sep 25, 2007 5:43 pm
by moshe
Thank you. That tells me the data element is functioning properly and that the error lies elsewhere.