# Forge webtriggers broken, 424 error code

**URL:** <https://community.developer.atlassian.com/t/forge-webtriggers-broken-424-error-code/61521>\
**Category:** Forge Modules and Product Triggers\
**Tags:** forge, forge-web-trigger\
**Created:** [September 13, 2022, 5:46pm UTC](https://community.developer.atlassian.com/t/forge-webtriggers-broken-424-error-code/61521 "2022-09-13T17:46:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IlyaRadchenko](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ilyaradchenko/32/46004_2.png) [@IlyaRadchenko](https://community.developer.atlassian.com/u/IlyaRadchenko)\
**Post date:** [September 13, 2022, 5:46pm UTC](https://community.developer.atlassian.com/t/forge-webtriggers-broken-424-error-code/61521/1 "2022-09-13T17:46:26Z")

</div>

Getting an error when posting to a webtrigger. Get the 424 error ‘Failed dependency’. I posted here: [Webtrigger returning 424 Failed dependency](https://community.developer.atlassian.com/t/webtrigger-returning-424-failed-dependency/46319) but that is solved and I haven’t heard back so reposting as a new topic.

I found [[FRGE-489] - Ecosystem Jira](https://ecosystem.atlassian.net/browse/FRGE-489) but no luck there either.

```auto
export async function taskCreated(value: any) {
  let err: Error | undefined;

  try {
    console.log('taskCreated: ', JSON.stringify(value, null, 2));
  } catch (e) {
    console.log(`taskCreated error: ${e}`);
    err = e;
  }

  return {
    body: err ? `{"error": "${err.message}"}` : '{"hello": "world"}',
    headers: {
      'Content-Type': ['application/json'],
      'X-Request-Id': ['example'],
    },
    statusCode: err ? 400 : 200,
    statusText: err ? err.message : 'OK',
  };
}

```

And manifest has the following:

```yaml
modules:
  webtrigger:
    - key: task-created-webtrigger
      function: task-created-web-func
  function:
    - key: task-created-web-func
      handler: web-triggers.taskCreated

```

Posting to the url returns this:

```auto
{
    "timestamp": "2022-09-08T17:33:30.499+00:00",
    "path": "/x1/L4-I8W7xWunEunceEBKbvVTqau0",
    "status": 424,
    "error": "Failed Dependency",
    "requestId": "98c5752e-62703"
}

```

This page: [https://developer.atlassian.com/platform/forge/manifest-reference/modules/web-trigger/](https://developer.atlassian.com/platform/forge/manifest-reference/modules/web-trigger/) needs an example of the request, response and an example of the function defined.

I was posting the following to the webhook:

 ![Screen Shot 2022-09-12 at 11.31.03 AM](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/b/e/be39acc95b9249c8b123107c015b62f218853f80.png)  
 ![Screen Shot 2022-09-12 at 11.32.05 AM](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/c/b/cb4376ef14eecf57fca24bd7174a14d87938fec8.png)

I tried multiple header and body variations, but all return the same thing.  
Running `npx forge webtrigger <id>` returns the same webtrigger url.

---

<div class="post-metadata">

**Author:** ![IlyaRadchenko](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ilyaradchenko/32/46004_2.png) [@IlyaRadchenko](https://community.developer.atlassian.com/u/IlyaRadchenko)\
**Post date:** [September 14, 2022, 3:07pm UTC](https://community.developer.atlassian.com/t/forge-webtriggers-broken-424-error-code/61521/2 "2022-09-14T15:07:32Z")

</div>

So this is super dumb, but was able to solve this. The error messaging needs to be better for sure. 424 default error is not enough.

Basically any time you change manifest for webtriggers you need to do `forge deploy` even if just using the tunnel.
