POST 405 Method Not Allowed error in API

Hi,

I am testing an API to convert html page to a PDF. I have set up an API Action according to documentation available from the API developer and it’s authorising the API call correctly. However, I am getting this error when calling/loading the API Action with url of the page I want to convert.

POST 405 Method Not Allowed

This is the error I am getting when I look under Network Tab in the DevTools:

405 - HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

The code for API Action is (some details have been changed):

<dmx-api-action
 id="api1" noload="true" method="post"
 url="https://api.pdfcrowd.com/convert/"
 dmx-header:authorization="'xxxxx:xxxxxxxxxx'"
 dmx-header:content-type="'application/x-www-form-urlencoded'"
 dmx-bind:url="'https://xxx.xxxxxx.com.au/xxxx.html'
 dmx-param:product_id="'{{products_techsheets_connect.data.products_techsheet_query[0].SourceVarietyGSUID}}'"
 dmx-header:accept="'*/*'">
</dmx-api-action>

I’m not sure whether the API action I have setup is incorrect or there’s a setting I need to change on the IIS Web server.

Any help in resolving the issue is greatly appreciated. Thank you.

Community Page
Last updated: