I don't think webhooks is working, how can I tell?

  • Profile Image
    trakwebster
    Asked on January 06, 2016 at 02:18 PM

    Hi,

    My application is behaving as if it is receiving no input from jotform via webhooks.

    Can you provide me with some simple php code that will capture the post variables and print them to a file so I can see if the post variables are being sent at all?

     

     

  • Profile Image
    jonathan
    Answered on January 06, 2016 at 06:13 PM

    Hi,

    You can check the examples in the user guide: https://www.jotform.com/help/248-Webhook-Samples

    Here is a code example http://pastebin.com/raw/77RujCdz

    The field IDs are included on http request. It takes only a few seconds to process webhook, it's even almost instant. When you hit submit in your form, it should work right way.

    You can use http://requestb.in/ to inspect HTTP requests. Simply set it as your webhook URL and check the sample data submitted in your requestbin.

     

    You can also test the Send Post data methode as describe here.

    Hope this help. Let us know how it goes.

     

     

     

     

  • Profile Image
    trakwebster
    Answered on January 06, 2016 at 07:11 PM

    Actually, I did that already. I used the email example, but no email was generated. This, of course, told me nothing, because the error could exist for three different reasons:  (1) broken webhooks, (2) broken smtp, or (3) error inside your example code.



    So I hired a different company 123contactform.com and used their webhooks app, just to compare.

    And their webhooks app checks to see if it could see my file. It could not.

     

    I investigated and discovered that a security plugin in wordpress was blocking the input coming into my application script via webhooks. I removed the security plugin and the problem went away, both on their platform and on yours.

     

    Unfortunately, YOUR webhooks integration is not very smart.

    It does not check to see whether the file the user provides it is accessible. Instead, even with my inaccessible file, your integration just smiles and says the integration has been accomplished ... when actually the integration hasn't been accomplished at all.

    I'd call that a serious bug.



    Please advise your developers that your webhooks application should check to see if the url input by the user is actually accessible. If you'll do that then you won't be telling users like me that it's integrated when actually it's not. 

    If your developers don't know how to do it, tell them to signup with 123contactform.com and see how those folks do it properly.

    OK?

     

  • Profile Image
    jonathan
    Answered on January 06, 2016 at 10:53 PM

    Thank you for the detailed explanation. I will relay your message to the higher team support. 

    They will provide response here as well if they have anything to say to this.

    Regards