# Incoming hook not work after migration from mysql

**URL:** <https://forum.mattermost.com/t/incoming-hook-not-work-after-migration-from-mysql/23056>\
**Category:** Uncategorized\
**Created:** [April 22, 2025, 7:35am UTC](https://forum.mattermost.com/t/incoming-hook-not-work-after-migration-from-mysql/23056 "2025-04-22T07:35:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidmartib](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/davidmartib/32/8768_2.png) [@davidmartib](https://forum.mattermost.com/u/davidmartib)\
**Post date:** [April 22, 2025, 7:35am UTC](https://forum.mattermost.com/t/incoming-hook-not-work-after-migration-from-mysql/23056/1 "2025-04-22T07:35:46Z")

</div>

Dear Community,

After migration from mysql to postgres, all existing incoming hooks doesn’t work. If I add a new one works, but existing I get an http 404 o 403 with this body:

```auto
{
    "id": "web.incoming_webhook.general.app_error",
    "message": "Failed to handle the payload of media type application/json for incoming webhook t7fybgmtwpng8dwgi3xdytzpzh.",
    "detailed_error": "",
    "request_id": "xjfob4wcz3bhmysusdu8ts47ic",
    "status_code": 403
}

```

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![davidmartib](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/davidmartib/32/8768_2.png) [@davidmartib](https://forum.mattermost.com/u/davidmartib)\
**Post date:** [April 22, 2025, 7:36am UTC](https://forum.mattermost.com/t/incoming-hook-not-work-after-migration-from-mysql/23056/2 "2025-04-22T07:36:26Z")

</div>

I am on the lastest version 10.7.0

---

<div class="post-metadata">

**Author:** ![sjoerdsmink](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/sjoerdsmink/32/9209_2.png) [@sjoerdsmink](https://forum.mattermost.com/u/sjoerdsmink)\
**Post date:** [October 3, 2025, 12:13pm UTC](https://forum.mattermost.com/t/incoming-hook-not-work-after-migration-from-mysql/23056/3 "2025-10-03T12:13:15Z")

</div>

It’s a bit late, but for those finding this page via Google, it can be useful to know this error is most likely related to an incorrect `channel` in the request. Keep in mind that you can change the channel name in Mattermost, but this doesn’t automatically change the URL. The `channel` in the webhook request must match the channel’s URL.
