Subdialog - 405 Method Not Allowed

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message
Offline

vikas

  • Posts: 53
  • Joined: Wed May 13, 2015 7:46 pm

Subdialog - 405 Method Not Allowed

PostTue Feb 06, 2018 2:03 pm

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>
Offline

support

  • Posts: 3505
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Subdialog - 405 Method Not Allowed

PostTue Feb 06, 2018 3:28 pm

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

Return to Plum DEV Q&A

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron