none
HTTPListener 405 Method Not Allowed

    Question

  • I must be missing something on configuring the HTTP Listener.

    I spawned a HTTP Request Logic App Template to create a basic HTTPListener Logic App. When I try to trigger the Logic app by sending a POST request to the HTTP Listener URL/endpoint, I get a 405 Method Not Allowed. I actually get the same message no matter what request type I send: GET, POST, PUT...but I'm pretty sure it is supposed to be listening for a POST.

    Picture of my Logic App Setup

    http://1drv.ms/1HbOg5S

    I also tried following instructions in this tutorial, but got the same result.

    http://rajram.azurewebsites.net/create-a-simple-http-request-response-logic-app/

    Thanks!


    Tuesday, June 23, 2015 4:57 PM

Answers

  • Two things that often lead to this:

    Make sure you are pointing to https:// instead of http:// for the POST

    Make sure you are pointing to the Relative URL (Did you set up a Relative URL?).  If you click the "..." and "Edit this Action" and click the second "..." under "Post" it will ask for the Relative URL.  If this isn't blank, just make sure you are pointed to the Relative URL (e.g. https://{endpointURL}/{RelativeURL})

    If Relative URL was blank, assign a Relative URL.  It's also important to know that even after you set this value, it will require the Logic App to update the 'trigger' to listen at the right point.  By default this occurs once every hour (so changes to Relative URL may take an hour to apply).  You can modify this time though.  If you switch to "Code View" you can scroll down to "triggers" and change the "recurrence" frequency to "Minute".  This means that within a minute the Logic App will refresh with the given Trigger values.

    Let me know if that works.

    Tuesday, June 23, 2015 6:17 PM
    Moderator

All replies

  • Two things that often lead to this:

    Make sure you are pointing to https:// instead of http:// for the POST

    Make sure you are pointing to the Relative URL (Did you set up a Relative URL?).  If you click the "..." and "Edit this Action" and click the second "..." under "Post" it will ask for the Relative URL.  If this isn't blank, just make sure you are pointed to the Relative URL (e.g. https://{endpointURL}/{RelativeURL})

    If Relative URL was blank, assign a Relative URL.  It's also important to know that even after you set this value, it will require the Logic App to update the 'trigger' to listen at the right point.  By default this occurs once every hour (so changes to Relative URL may take an hour to apply).  You can modify this time though.  If you switch to "Code View" you can scroll down to "triggers" and change the "recurrence" frequency to "Minute".  This means that within a minute the Logic App will refresh with the given Trigger values.

    Let me know if that works.

    Tuesday, June 23, 2015 6:17 PM
    Moderator
  • I was using http://, not https://.

    Thank you very much!

    Tuesday, June 23, 2015 8:23 PM