# How to change the 20 seconds default value timeout for Database Action Scripts?

**URL:** <https://community.auth0.com/t/how-to-change-the-20-seconds-default-value-timeout-for-database-action-scripts/7900>\
**Category:** Get Help\
**Tags:** custom-database, database-action-scri, connections\
**Created:** [August 19, 2017, 5:13am UTC](https://community.auth0.com/t/how-to-change-the-20-seconds-default-value-timeout-for-database-action-scripts/7900 "2017-08-19T05:13:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![billy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/billy/32/4336_2.png) [@billy](https://community.auth0.com/u/billy)\
**Post date:** [August 19, 2017, 5:13am UTC](https://community.auth0.com/t/how-to-change-the-20-seconds-default-value-timeout-for-database-action-scripts/7900/1 "2017-08-19T05:13:42Z")

</div>

We have a service that sometimes takes more than 20 seconds to response.

We are receiving this message: `Script execution did not complete within 20 seconds. Are you calling the callback function?`

For example, inside of the `Create` (Sign Up) script we are using request function in order to call our endpoint:

```
var options = { url: 'url', body: 'body', timeout: 30000 };

request.post(options, function (err, response, body) {
    callback(null, user);
});

```

How can we change the 20 seconds default timeout value for a http request?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [August 29, 2017, 6:45pm UTC](https://community.auth0.com/t/how-to-change-the-20-seconds-default-value-timeout-for-database-action-scripts/7900/2 "2017-08-29T18:45:12Z")

</div>

The overall timeout for a custom database script to complete is not configurable so any other requests performed within that script have to have that in consideration.

Assuming that there is nothing that can be done to decrease the time it takes to perform that external operation you can consider not performing the signup through Auth0 as the _Create_ script is optional. In this option the user would be created directly in the custom store and then would be surfaced/visible within Auth0 only after completing the first authentication/login.

---

<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 2, 2018, 5:56am UTC](https://community.auth0.com/t/how-to-change-the-20-seconds-default-value-timeout-for-database-action-scripts/7900/3 "2018-03-02T05:56:01Z")

</div>


