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

Subdialog - 405 Method Not Allowed

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
vikas
Posts: 53
Joined: Wed May 13, 2015 7:46 pm

Subdialog - 405 Method Not Allowed

Post by vikas »

Hi Plum

I am getting 405 Method not allowed error when using <subdialog> tag with raw method.
Can you please help? Thanks.

HTTP/1.1 405 Method Not Allowed - https://ivrpv-vppp.blackhawk-net.com/AP ... ml/API.xml
DocumentParser::FetchBuffer - could not open URL: https://ivrpv-vppp.blackhawk-net.com/AP ... ml/API.xml
DocumentParser::FetchDocument - exiting with error result 2
errno: 203 uri https://ivrpv-vppp.blackhawk-net.com/AP ... ml/API.xml

I have pasted the code I am using below

Code: Select all

<script>		  		
			
					var uKey = "\"" + getUniqueKey() + "\"";
					var headers = {"requestId": uKey, "MerchantId":"60300004053"};
					
					var JSONRequest = {
					"header": headers,
					"body": {
						"cardNumber": card_Number,
						"expirationMonth": expirationMonth,
						"expirationYear":  expirationYear,
						"securityCode": cvv2,
						"channel": channel.id
						}
					};  				  		
		</script>
		<block>
		<log expr="'*****Before API Call*****' + JSON.stringify(JSONRequest)"/>
		</block>
		<subdialog name="verifyCard" method="raw" enctype="application/json" rawexpr="JSON.stringify(JSONRequest)" srcexpr="apiServer"/>
		<block>
			<log expr="'*****After API Call*****' + JSON.stringify(verifyCard)"/>
			Hello <value expr="verifyCard.JSONResponse.transactionId"/>.
		</block>

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

Re: Subdialog - 405 Method Not Allowed

Post by support »

Hi,

When you use method="raw" that will ultimately create an HTTP POST request from our platform. The "HTTP/1.1 405 Method Not Allowed" error is coming from your web server and it indicates that your server / script does not allow a POST request. You should double check to make sure that the script is configured to accept an HTTP POST to avoid this error.

Please let us know if this does not resolve your issue.

Regards,
Plum Support

Post Reply