# Failed Cross Origin Authentication - Request to Webtask exceeded allowed execution

**URL:** <https://community.auth0.com/t/failed-cross-origin-authentication-request-to-webtask-exceeded-allowed-execution/56015>\
**Category:** Get Help\
**Tags:** lock, login\
**Created:** [January 11, 2021, 6:51pm UTC](https://community.auth0.com/t/failed-cross-origin-authentication-request-to-webtask-exceeded-allowed-execution/56015 "2021-01-11T18:51:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcordeiro](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jcordeiro/32/26833_2.png) [@jcordeiro](https://community.auth0.com/u/jcordeiro)\
**Post date:** [January 11, 2021, 6:51pm UTC](https://community.auth0.com/t/failed-cross-origin-authentication-request-to-webtask-exceeded-allowed-execution/56015/1 "2021-01-11T18:51:56Z")

</div>

We have multiple Auth0 `Regular Web Applications` which all fail with the error below when a user tries to login. Nothing seems to have changed on our end, including the `CORS` and `Allowed Web Origins` settings on these web apps.

Our machine-to-machine applications are still able to successfully hit Auth0 to retrieve access tokens and use those to hit our APIs.

I’ve searched the community here but wasn’t able to find any results for the `Webtask exceeded allowed execution` error related to `Cross Origin Authentication`.

I’ve extracted some of the relevant information from the logs below

```
"type": "fcoa",
"description": "Request to Webtask exceeded allowed execution time",
"connection": "Username-Password-Authentication",
"error": {
  "message": "Request to Webtask exceeded allowed execution time",
  "oauthError": "access_denied",
  "type": "oauth-authorization"
}

```

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [January 11, 2021, 8:15pm UTC](https://community.auth0.com/t/failed-cross-origin-authentication-request-to-webtask-exceeded-allowed-execution/56015/3 "2021-01-11T20:15:58Z")

</div>

Hi @jcordeiro,

Welcome to the Community!

The `Request to Webtask exceeded allowed execution time` error happens when a rule in a tenant either:

1. takes too long to finish (e.g., calling an external API)
2. is not calling the `callback()` function in every code path

Have you tried turning off each rule one at a time? It would probably help to narrow down which rule is causing the issue.

---

<div class="post-metadata">

**Author:** ![jcordeiro](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jcordeiro/32/26833_2.png) [@jcordeiro](https://community.auth0.com/u/jcordeiro)\
**Post date:** [January 11, 2021, 8:50pm UTC](https://community.auth0.com/t/failed-cross-origin-authentication-request-to-webtask-exceeded-allowed-execution/56015/4 "2021-01-11T20:50:52Z")

</div>

Hi @stephanie.chamblee,

Disabling the rules one at a time helped me find which rule was causing the issue. There was a call to an external API which was timing out. Fixing the external API call has resolved the issue and logging in is now working again.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [January 11, 2021, 8:53pm UTC](https://community.auth0.com/t/failed-cross-origin-authentication-request-to-webtask-exceeded-allowed-execution/56015/5 "2021-01-11T20:53:26Z")

</div>

I’m glad to hear the issue is resolved!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 26, 2021, 8:53pm UTC](https://community.auth0.com/t/failed-cross-origin-authentication-request-to-webtask-exceeded-allowed-execution/56015/6 "2021-01-26T20:53:33Z")

</div>

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