# Facebook webhook post requests on the internal rasa server not working

**URL:** <https://forum.rasa.com/t/facebook-webhook-post-requests-on-the-internal-rasa-server-not-working/12445>\
**Category:** Rasa Open Source\
**Created:** [July 3, 2019, 2:14pm UTC](https://forum.rasa.com/t/facebook-webhook-post-requests-on-the-internal-rasa-server-not-working/12445 "2019-07-03T14:14:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rogers\_ntr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rogers_ntr/32/3067_2.png) [@Rogers\_ntr](https://forum.rasa.com/u/Rogers_ntr)\
**Post date:** [July 3, 2019, 2:14pm UTC](https://forum.rasa.com/t/facebook-webhook-post-requests-on-the-internal-rasa-server-not-working/12445/1 "2019-07-03T14:14:55Z")

</div>

HI all, Since this morning, when I try to send message on facebook messenger channel, I get this error:

> ```
> [2019-07-03 15:57:27 +0200] [14372] [ERROR] Exception occurred while handling uri: 'http://<custom>.ngrok.io/webhooks/facebook/webhook'
> Traceback (most recent call last):
> File "$HOME/paysikabot/lib/python3.7/site-packages/sanic/app.py", line 917, in handle_request
> response = await response
> File "$HOME/paysikabot/lib/python3.7/site-packages/rasa/core/channels/facebook.py", line 319, in webhook
> await messenger.handle(request.json)
> File "$HOME/paysikabot/lib/python3.7/site-packages/rasa/core/channels/facebook.py", line 66, in handle
> for message in entry["messaging"]:
> KeyError: 'messaging'
> 
> ```

I try many things, but nothing seems to solve the problem. I restart, change the page access token, etc… However, when I run on the shell with `rasa shell` command, everything seem to work properly.

I use `rasa 1.1.4`. I was using till this evening, `rasa 1.0.0` Any idea how to solve it ?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 4, 2019, 11:56am UTC](https://forum.rasa.com/t/facebook-webhook-post-requests-on-the-internal-rasa-server-not-working/12445/2 "2019-07-04T11:56:24Z")

</div>

It seems that the message likely isn’t getting to you in the correct format. Are you using ngrok? If so, what’s the content of the POST request?

---

<div class="post-metadata">

**Author:** ![Rogers\_ntr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rogers_ntr/32/3067_2.png) [@Rogers\_ntr](https://forum.rasa.com/u/Rogers_ntr)\
**Post date:** [July 4, 2019, 12:10pm UTC](https://forum.rasa.com/t/facebook-webhook-post-requests-on-the-internal-rasa-server-not-working/12445/3 "2019-07-04T12:10:15Z")

</div>

Actually, the content of the post request was wrong. The delay of reception of the message too long. this was due to the bug that all Facebook platform encountered yesterday. Today, everything is alright.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 4, 2019, 12:16pm UTC](https://forum.rasa.com/t/facebook-webhook-post-requests-on-the-internal-rasa-server-not-working/12445/4 "2019-07-04T12:16:23Z")

</div>

Ah, that’s unfortunate, i’m glad you got it figured out though!
