# Incoming webhook throws 404 b/c of template error

**URL:** <https://forum.mattermost.com/t/incoming-webhook-throws-404-b-c-of-template-error/1134>\
**Category:** Troubleshooting\
**Created:** [March 22, 2016, 11:58pm UTC](https://forum.mattermost.com/t/incoming-webhook-throws-404-b-c-of-template-error/1134 "2016-03-22T23:58:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nachokb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/nachokb/32/544_2.png) [@nachokb](https://forum.mattermost.com/u/nachokb)\
**Post date:** [March 22, 2016, 11:58pm UTC](https://forum.mattermost.com/t/incoming-webhook-throws-404-b-c-of-template-error/1134/1 "2016-03-22T23:58:01Z")

</div>

This is similar to [1] but bear with me, please.

I’m running 2.1.0 (2cd006474ec8a808).

Tried the `slack-notifier` gem and it was throwing 404 (I had taken the URL from Mattermost and it looked correct.

Tried using cURL with `curl -i -X POST -d 'payload={"text": "Hello, this is some text."}' http://mydomain:myport/hooks/123456123456abcdef` (taken from [1]) and it also threw 404’s.

Then I saw the reason in the logs:

> [2016/03/22 23:52:32 UTC] [EROR] /hooks/deadbeef: code=404 ip=1.2.3.4  
> [2016/03/22 23:52:32 UTC] [EROR] Error rendering template error err=html/template:error.html:4:11: no such template “head”  
> [2016/03/22 23:52:32 UTC] [EROR] Failed to create error page: html/template:error.html:4:11: no such template “head”, Original error: Handle404: ,

It seems it’s trying to render an error page, so it might be masking another error behind it…

Will keep looking.

– nachokb

[1] [Mattermost log error 404 with integration hooks](http://forum.mattermost.com/t/mattermost-log-error-404-with-integration-hooks/479)

---

<div class="post-metadata">

**Author:** ![nachokb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/nachokb/32/544_2.png) [@nachokb](https://forum.mattermost.com/u/nachokb)\
**Post date:** [March 22, 2016, 11:58pm UTC](https://forum.mattermost.com/t/incoming-webhook-throws-404-b-c-of-template-error/1134/2 "2016-03-22T23:58:47Z")

</div>

… just noticed `EROR` with a single `R` 😂

---

<div class="post-metadata">

**Author:** ![mrcaron](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@mrcaron](https://forum.mattermost.com/u/mrcaron)\
**Post date:** [April 7, 2016, 3:35pm UTC](https://forum.mattermost.com/t/incoming-webhook-throws-404-b-c-of-template-error/1134/3 "2016-04-07T15:35:55Z")

</div>

I’m getting this same issue. I’m running from the docker mattermost-dev image. _2.1.0_, build _6562_, Build Hash _2cd006474ec8a808b2ea2b0502a842f44cb0b127_. I launched fiddler and composed a POST right in fiddler to push out to the hook. ☹

---

<div class="post-metadata">

**Author:** ![mrcaron](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@mrcaron](https://forum.mattermost.com/u/mrcaron)\
**Post date:** [April 7, 2016, 3:50pm UTC](https://forum.mattermost.com/t/incoming-webhook-throws-404-b-c-of-template-error/1134/4 "2016-04-07T15:50:12Z")

</div>

I filed a Github issue: [https://github.com/mattermost/platform/issues/2659](https://github.com/mattermost/platform/issues/2659)
