Increase timeout in Search module of my custom app

Hi,

I’m creating a custom app for out API - api.theirstack.com

One of the endpoints may take longer to respond than the default 30s and I’d like to increase that timeout. It’s possible in the HTTP module, so I see no reason that it shouldn’t be possible when creating a custom app, but I read the docs and didn’t find how to do it.

This is the definition of the module that is timing out sometimes:

{
    "qs": {
        "{{...}}": "{{toCollection(parameters.qs, 'key', 'value')}}",
        "source": "integromat"
    },
    "url": "{{parameters.url}}",
    "body": "{{parameters.body}}",
    "type": "text",
    "method": "{{parameters.method}}",
    "response": {
        "output": {
            "body": "{{body}}",
            // "headers": "{{headers}}",
            "statusCode": "{{statusCode}}"
        },
        "error": {
            "type": "RuntimeError",
            "message": "[{{statusCode}}] {{body.error.message}}",
            "400": {
                "type": "DataError",
                "message": "[{{statusCode}}] {{body.error.message}}"
            },
            "500": {
                "type": "ConnectionError",
                "message": "[{{statusCode}}] {{body.error.message}}"
            }
        }
    }
}

And these are the params it takes:

[
    {
        "help": "Enter a path relative to `https://api.theirstack.com`. Has to start with `/`. For example, `/v0/jobs/search`.",
        "name": "url",
        "type": "text",
        "label": "URL",
        "required": true
    },
    {
        "name": "method",
        "type": "select",
        "label": "Method",
        "default": "GET",
        "options": [
            {
                "label": "GET",
                "value": "GET"
            },
            {
                "label": "POST",
                "value": "POST"
            },
            {
                "label": "PUT",
                "value": "PUT"
            },
            {
                "label": "PATCH",
                "value": "PATCH"
            },
            {
                "label": "DELETE",
                "value": "DELETE"
            }
        ],
        "required": true
    },
    {
        "name": "qs",
        "spec": [
            {
                "name": "key",
                "type": "text",
                "label": "Key"
            },
            {
                "name": "value",
                "type": "text",
                "label": "Value"
            }
        ],
        "type": "array",
        "label": "Query String"
    },
    {
        "name": "body",
        "type": "any",
        "label": "Body"
    },
    {
        "help": "You don't have to add authorization headers; we already did that for you.",
        "name": "headers",
        "spec": [
            {
                "name": "key",
                "type": "text",
                "label": "Key"
            },
            {
                "name": "value",
                "type": "text",
                "label": "Value"
            }
        ],
        "type": "array",
        "label": "Headers",
        "advanced": true,
        "default": [
            {
                "key": "Content-Type",
                "value": "application/json"
            }
        ]
    }
]

It’s just a Universal module, as you see, pretty basic.

What can I do to increase the default timeout? Thanks!!

Got an answer from support:

You may increase the timeout globally at the app level (but not just for one module specifically).

In order to increase the timeout for the whole app:

1. In the base, you need to setup the http request timeout:

2. Then, in the common data, you would need to configure the module timeout (in milliseconds, so here for example, equivalent to 75 seconds):

(The maximum being 300000 milliseconds, i.e. 5 minutes)

However, note that it doesn’t appear anywhere in the docs and both the VSCode extension as well as the Make.com dev portal will mark the “timeout” property as unsupported.

image

But it’ll work when you try it on a scenario, the spinner around a module will move much slower.

2 Likes

Hi @xoel welcome to the community :blob_wave:

It’s great to hear that our support team helped point you in the right direction! Thanks a lot for circling back to the community and sharing the guidance you received. This is super valuable and will surely benefit many others down the road. :pray:

2 Likes

Hey, have a scenario running a fairly complex prompt through assistants API and want to apply this to my stuff as well, I’m unable to find the “base” section however. If it helps, I am working within a scenario that has not been activated yet. Any and all help is greatly appreciated.

@JohnForrestor Welcome to the Make community!

That looks like a new question, as it doesn’t seem to be related to the use of “Custom Apps”, as you are using the “OpenAI” app. Could you please create a separate topic for this?

While it’s tempting to hop onto an existing thread, a more effective approach would be to start a new topic just for your question. Why? It helps community experts find and respond to your query quicker, and keeps our space organised for everyone. If you start a new conversation you are also more likely to get help from other users. Thank you for understanding and keeping our community neat and tidy.

Let’s click that “New Topic” link in the top-right of the header and submit your question there!

Screenshot_2023-12-19_091207

3 Likes

There is any solution for connection timeout?