We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Invalid Document Structure errno

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
w2gi
Posts: 46
Joined: Fri Jun 26, 2009 1:35 pm

Invalid Document Structure errno

Post by w2gi »

Hi,
Hi I am getting this error in the logs. Can you please tell me why this error is thrown? what does it mean by "Invalid document structure"?

Wed 13 Jan 2010 06:55:53 PM EST:
DocumentParser::FetchDocument - Parse error in file "http://somesite.com/cgi-bin/upload.cgi", line 1, column 1 - Invalid document structure
errno: 205 uri http://somesite.com/cgi-bin/upload.cgi
received event: error.badfetch:
Can not queue audio -- line disconnected
received event: connection.disconnect.hangup:
Max Disconnect Count Exceeded
Call End Event
Ending session
Ending Session On Channel 40

Code: Select all

<form id="transferout">
   <!-- Records the transer -->
   <property name="recordcall" value="true" />
   <block>
      <prompt>Please wait while we transfer your call</prompt>
   </block>   

   <transfer name="callTransfer" destexpr="'+' + document.locations[document.chosen-1].PHONE" bridge="true" connecttimeout="20s">   
	 <filled>
		<if cond="callTransfer == 'near_end_disconnect'"> 
                    <throw event="nearend" />
                <elseif cond="callTransfer == 'far_end_disconnect'"/>
                   <throw event="farend" />
                <elseif cond="callTransfer == 'busy'"/>
		   <prompt bargein="false">         
			  I am sorry but the place you are trying to transfer is busy. Please try again later.
			  <audio src="http://blah.com/temp.wav"></audio>
		   </prompt>
		   <disconnect/>                
                </if>
   </transfer>

   <catch event="connection.disconnect.hangup">
        <submit next="http://somesite.com/cgi-bin/upload.cgi" namelist="callrecording" method="post" enctype="multipart/form-data" fetchtimeout="180s" />
   </catch>

   <catch event="farend nearend">
        <submit next="http://somesite.com/cgi-bin/upload.cgi" namelist="callrecording" method="post" enctype="multipart/form-data" fetchtimeout="180s" />
   </catch>

</form>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Missing IVR tag: </filled>

Post by support »

Hi,

From a cursory glance over the IVR code you supplied us, we had noted that you were missing the closing IVR <filled> tag. To test your IVR application's code you could use our "Validate" feature within the "Application Configuration" within your hosting account.

The reason you received the "Invalid document structure" would relate to the code pulled from "http://somesite.com/cgi-bin/upload.cgi". Our IVR platform is receiving xml code that it does not understand which causes the parse error. This IVR code could also be checked by using the "Validate" feature we mentioned earlier.

Regards,
Plum Support
Last edited by support on Tue Feb 16, 2010 11:26 am, edited 1 time in total.

w2gi
Posts: 46
Joined: Fri Jun 26, 2009 1:35 pm

Post by w2gi »

Thanks for the reply. I did had closing <filled> tag, it got removed by accident. I fixed the upload.cgi. It works fine. Thanks!

Post Reply