# Request to Webtask exceeded allowed execution time - WP Plugin issue

**URL:** <https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835>\
**Category:** Get Help\
**Tags:** wordpress\
**Created:** [March 3, 2021, 8:56pm UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835 "2021-03-03T20:56:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rocky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rocky/32/27967_2.png) [@rocky](https://community.auth0.com/u/rocky)\
**Post date:** [March 3, 2021, 8:56pm UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/1 "2021-03-03T20:56:18Z")

</div>

Hello guys, I have a problem with Auth0 plugin for WordPress. I’ve set up the plugin, and it works for Google login, but it doesn’t work with my own DB. I’ve setup the DB migration and when I test these settings - all things seem to be ok:

 ![Снимок экрана 2021-03-03 в 23.52.49](https://global.discourse-cdn.com/auth0/original/3X/b/d/bd6d93021bfec0030f8000497200ab2a920510de.png)

But when I’m trying to login to my site - I get 401 status code with this message “Request to Webtask exceeded allowed execution time”.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [March 4, 2021, 8:19am UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/2 "2021-03-04T08:19:36Z")

</div>

Hi @rocky

This error happens when a rule, hook, or database script takes longer than 20 seconds to complete. Usually from an external API call that does not return within that time. Can you try disabling those to see if they are causing the error?

---

<div class="post-metadata">

**Author:** ![rocky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rocky/32/27967_2.png) [@rocky](https://community.auth0.com/u/rocky)\
**Post date:** [March 4, 2021, 1:41pm UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/3 "2021-03-04T13:41:14Z")

</div>

Thank you for your reply, @ricardo.batista !

Could you explain what you mean? What should I disable?

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [March 4, 2021, 1:50pm UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/4 "2021-03-04T13:50:42Z")

</div>

In the Auth0 dashboard, try disabling any [rules](https://manage.auth0.com/dashboard/#/rules) and [hooks](https://manage.auth0.com/dashboard/#/hooks) that you might have enabled.

> **[Auth0 Rules](https://auth0.com/docs/customize/rules)**
>
> Learn about Rules and how you can use them to customize and extend Auth0's capabilities.

> **[Auth0 Hooks](https://auth0.com/docs/customize/hooks)**
>
> Describes Auth0 hooks, some of which may be used with database and passwordless connections.

If this does not work and if you have a custom DB with a login or get user script, you can add console.log() into the scripts and see if they are taking longer than the 20 seconds, using the [Real-time Webtask Logs extension](https://auth0.com/docs/extensions/real-time-webtask-logs). See this for more context on the custom DBs:

> **[Create Custom Database Connections](https://auth0.com/docs/authenticate/database-connections/custom-db/create-db-connection)**
>
> Learn how to create a database connection.

> **[Custom Database Action Script Templates](https://auth0.com/docs/authenticate/database-connections/custom-db/templates)**
>
> Learn about custom database action script templates.

---

<div class="post-metadata">

**Author:** ![rocky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rocky/32/27967_2.png) [@rocky](https://community.auth0.com/u/rocky)\
**Post date:** [March 4, 2021, 2:02pm UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/5 "2021-03-04T14:02:39Z")

</div>

@ricardo.batista I don’t have any hooks and rules. When I test the application with my current setting it works, but when I open the form on my WP site I get the error.

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [March 4, 2021, 2:13pm UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/6 "2021-03-04T14:13:45Z")

</div>

Can you capture a HAR file for this failure and send it to me in a private message? Be sure to redact any secrets or passwords from it.

You can find detailed instructions on how to create it here: [Generate and Analyze HAR Files](https://auth0.com/docs/troubleshoot/generate-and-analyze-har-files)

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [March 4, 2021, 3:51pm UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/7 "2021-03-04T15:51:56Z")

</div>

Hi @rocky

Thanks for the HAR file. I can see that the Username-Password-Authentication is a custom database and has action scripts defined. The Login script, as an example, is called each time a user is required to authenticate: [Login Script Templates](https://auth0.com/docs/connections/database/custom-db/templates/login)

You can see them if you select the Username-Password-Authentication connection in the Auth0 dashboard, then Custom Database and under the Database Action Scripts you can find the Login script. This is calling an external MySQL database and is taking longer than 20 seconds to return. I recommend that you put some console.log() in there and check the output and timestamps using the [Real-time Webtask Logs Extension](https://auth0.com/docs/extensions/real-time-webtask-logs) to check why your MySQL database is not returning properly within 20 seconds.

---

<div class="post-metadata">

**Author:** ![rocky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rocky/32/27967_2.png) [@rocky](https://community.auth0.com/u/rocky)\
**Post date:** [March 4, 2021, 5:03pm UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/8 "2021-03-04T17:03:04Z")

</div>

@ricardo.batista You were right. I managed to resolve the issue. The problem was that the Application was using other connections (different databases) that contain invalid scripts. These are scripts from other developers and in order not to delete them, I simply disconnected all databases that are not mine. Thanks a lot for your help.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 5, 2021, 10:26am UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/9 "2021-03-05T10:26:23Z")

</div>

Glad it’s working for you now!

---

<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:** [March 20, 2021, 10:26am UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/10 "2021-03-20T10:26:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 20, 2022, 4:21pm UTC](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-wp-plugin-issue/58835/11 "2022-07-20T16:21:58Z")

</div>

We have a great FAQ for this!

[https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-error-in-rules/87150](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-error-in-rules/87150)
