Question

Photo of Morgan Woods-Leshe

0

Twilio Webhook

How Do I go and make sure the web hook for twill is public?

When I try and access the URL it says "Invalid request type." 

  • Photo of Daniel Hazelbaker

    0

    Hi Morgan,

    That should mean it is working.  The "Invalid request type" is the webhook responding to you.  It gives that, somewhat cryptic, error to indicate that it did not get the expected information passed to it from Twilio.

    What you need to make sure of is that you can hit that same URL from outside your network. For example, check when you are at home and make sure you get the same "Invalid request type" message.  Or you can ask somebody who is off-site to check it for you.

  • Photo of Paul Tedder

    0

    Morgan,

    What did you ever find with the "Invalid Request Type" error?  I am having the exact same issue myself and it does not seem to be related to the setup of our web server.  I would appreciate any insight you might have.

    • Daniel Hazelbaker

      "Invalid Request Type" is normal behavior when you try to browse to the URL. It's expecting specific information from Twilio which it doesn't get when you try to just put the URL in your browser - hence the "Invalid Request Type". The core issue is probably that the URL you are using when configuration Twilio is not correct. Twilio, which is outside your network, needs to be able to reach that URL. If from you home computer you can reach that URL and get the "Invalid Request Type" message then everything should be correct.

  • Photo of Paul Tedder

    0

     Thanks, Daniel.  I am able to get the same message "Invalid Request Type" whether from home or office.  We actually are running our Rock server on Azure so that shouldn't make a difference.

    Is there something I need to be doing in Rock?  I am taking a simple SMS communication and trying to reply to it.  Should that work, or does there need to be some other configuration done in Rock?  In Twilio, I actually created a small TwiML that I've used with the phone number in question to send me a simple reply and that worked fine.  It would seem to be URL related... any further troubleshooting ideas?


    • Daniel Hazelbaker

      Have you gone through the setup of Rock and Twilio to link them together (as documented here: https://www.rockrms.com/Rock/BookContent/8#smstwilio) ? My understanding is that after you do that you should be able to send SMS messages from Rock.


      Depending on what you mean by "reply" you might need the Text-To-Workflow plug-in. I'm not entirely sure what you are trying to accomplish and what you have tried so far; so a new question with exactly what you are wanting to do might be a cleaner way to proceed.

  • Photo of Paul Tedder

    0

    Thanks Daniel.  I have.  I appreciate your feedback.  I will generate a new question that may better explain what I am asking.  I have confirmed though that the webhook is working properly (by modifying the code in the twilio.ashx file to return a little different text than the standard. Thanks again.