Skip to main content

Validating Webhook URL

  • March 31, 2023
  • 7 replies
  • 608 views

I’m having trouble validating my URL for Webhooks. I am capturing the challenge token and writing it to a logs table in my MySQL DB so I know that I am receiving the challenge, however, the below script does not work. Any insight would be much appreciated!

< script type=“text/javascript” >
app.post(“/”, function (req, res) {
console.log(JSON.stringify(req.body, 0, 2));
res.status(200).send(req.body);
})
< /script >

7 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • April 2, 2023

Hello @jweinacker and welcome to the community!

Would you be able to please send an email to appsupport@monday.com with a screen recording of the steps you are taking, your webhook’s configuration with the URL, the script you have and the error you are seeing?

We can take a look from there 🙂

Cheers,
Matias


  • Author
  • New Participant
  • April 3, 2023

Thanks Matias! Please view the video attached.

(Attachment Monday_webhook_video.wmv is missing)


  • Author
  • New Participant
  • April 3, 2023

Thanks Matias! Please view the video attached. I look forward to your response!


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • April 4, 2023

Hello @jweinacker!

I can see your alert on line 3 is not in the same function as line 5.

Are you sure your line 5 is being accessed?

What happens if you add a console.log in the function from line 4, before sending the challenge back?

Do you see it in your console in your browser?


  • Author
  • New Participant
  • April 4, 2023

Hey Matias, please see the video attached. I’m console logging before, during and after the post function


  • Author
  • New Participant
  • April 5, 2023

Is there a better way to do this other than this JS script. I can post the challenge back to you, but where do I make the request to? Sorry I have 3 high level developers on this, and we honestly can’t figure this out from the documentation…


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • April 9, 2023

Hello again,

Can you please send an email to appsupport@monday.com?

We might need to hop on a call to take a look into this together.

Looking forward to hearing from you!

Cheers,
Matias