# Webhook not not sending requests

**URL:** <https://devforum.zoom.us/t/webhook-not-not-sending-requests/99892>\
**Category:** API and Webhooks\
**Tags:** webhooks\
**Created:** [December 10, 2023, 6:59pm UTC](https://devforum.zoom.us/t/webhook-not-not-sending-requests/99892 "2023-12-10T18:59:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shlomi.fenster](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@shlomi.fenster](https://devforum.zoom.us/u/shlomi.fenster)\
**Post date:** [December 10, 2023, 6:59pm UTC](https://devforum.zoom.us/t/webhook-not-not-sending-requests/99892/1 "2023-12-10T18:59:01Z")

</div>

Hi all!  
I’ve recently migrated from jwt-authentication to s2s-oauth, and I’ve rewritten most of the required code on my url-endpoint accordingly.  
I’ve passed the url-endpoint-validation part, and wanted to test my actuall events, but I don’t seem to be getting anything incoming from the webhook.  
E.g., I have a “recording has been deleted (removed to trash)” event, and so I went ahead and deleted a recording, but no event was sent to my webhook url flask app.

I’ve simplified things for the sake of just logging such events, but obviously if nothing comes through then that doesn’t really help debug.

What should I check? What might I be doing wrong?

Here’s some info so we can jump straight to the interesting problems and skip the obvious mistakes:

Example event checked -

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/d/dde5cb2e763f9155428b5e869383c42599edf2c9.png)

Url has been validated -  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/7/172a6fd410afb7e10bf73c2d0162e6e48a90366e.png)

And some (simplified) code -

```auto
@app.route('/zoom_recordings_webhook/', methods=['POST'])
def run_main_new_zoom_recording_available():
    request_body = request.get_json(force=True)
    request_body_str = json.dumps(request_body, separators=(",", ":"), ensure_ascii=False)

    x_zm_signature = request.headers['x-zm-signature']

    message = f"v0:{request.headers['x-zm-request-timestamp']}:{request_body_str}"
    hashed_message = hmac.new(bytes(ZOOM_SECRET_TOKEN, 'latin-1'),
                              msg=bytes(message, 'latin-1'),
                              digestmod=hashlib.sha256).hexdigest()
    signature = f"v0={hashed_message}"
    if x_zm_signature == signature:
        if request_body['event'] == 'endpoint.url_validation':
            plain_token = request_body['payload']['plainToken']
            hash_for_validation = hmac.new(bytes(ZOOM_SECRET_TOKEN, 'latin-1'),
                                           msg=bytes(plain_token, 'latin-1'),
                                           digestmod=hashlib.sha256).hexdigest()

            response = json.dumps({'plainToken': plain_token, 'encryptedToken': hash_for_validation})
            return Response(response=response, status=200)
        else:
            print(request_body)
            print('===============================')
            print(list(request.headers.keys()))
            print('###############################')

    else:
        print('Nope...')
        print(signature)
        print(x_zm_signature)
        print(' ***************************************')

```

I’ve also looked at the app dashboards on the zoom-app-market, and I don’t see any POST requests, but I’m not sure how indicative that is…

Thanks in advance!  
Shlomi

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 11, 2023, 8:29pm UTC](https://devforum.zoom.us/t/webhook-not-not-sending-requests/99892/2 "2023-12-11T20:29:32Z")

</div>

Hi @shlomi.fenster  
Thanks for reaching out to us!  
I see that you are having issues receiving events with your Server to Server Oauth app.

I see that you successfully validated your URL but you are not getting any events.  
could you add another event such as meeting.created and try and trigger the endpoint?  
Sometimes the events take a couple of minutes to be delivered to the endpoint.

I also wanted to share a link to a blog post we have that will help you troubleshoot webhooks with one of our sample apps and ngrok.

> **[Using ngrok to receive Zoom Events](https://developers.zoom.us/blog/using-ngrok-to-receive-zoom-events/)**
>
> This tutorial by Elisa Levet guides users on setting up Zoom webhooks using ngrok as a secure URL to receive events from a Zoom account. The guide provides steps to implement Zoom webhooks, create a sample app, validate the endpoint URL, and receive...

Let me know if this helps  
Elisa

---

<div class="post-metadata">

**Author:** ![shlomi.fenster](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@shlomi.fenster](https://devforum.zoom.us/u/shlomi.fenster)\
**Post date:** [December 14, 2023, 10:14am UTC](https://devforum.zoom.us/t/webhook-not-not-sending-requests/99892/3 "2023-12-14T10:14:07Z")

</div>

Ok, I played around a bit, and it looks like you’re right. The time for the hook to activate can be a few minutes, which I wasn’t expecting, (I thought it would be a matter of a few seconds at most).  
Thanks!

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 14, 2023, 8:32pm UTC](https://devforum.zoom.us/t/webhook-not-not-sending-requests/99892/4 "2023-12-14T20:32:20Z")

</div>

Thanks for confirming this @shlomi.fenster  
Happy tthat works now!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 15, 2023, 8:32pm UTC](https://devforum.zoom.us/t/webhook-not-not-sending-requests/99892/5 "2023-12-15T20:32:50Z")

</div>

Closed on December 15, 2023, 8:32pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
