Request timeout in production limited to 15 seconds — how to extend for custom apps?

Hi,

I’m building a custom Freshdesk sidebar app (platform v3.0) that calls an external AI API from a serverless function using $request.invokeTemplate(). The API takes 10-16 seconds to respond depending on the complexity of the ticket.

Local testing works fine — I set fdk config set request.timeout 30000 and the .fdk/configs.json applies the 30-second timeout during fdk run.

In production, requests fail at ~15 seconds. The API logs confirm the request arrives and a 200 response is returned, but the Freshworks platform cuts the connection before the response reaches the app. The frontend receives a 500 error with errorSource: "APP".

I’ve tried:

  • fdk config set request.timeout 30000 — only works locally, .fdk/configs.json is not bundled in fdk pack

  • Adding "options": { "timeout": 30000 } in config/requests.json — rejected by FDK validation: "options must NOT have additional properties 'timeout'"

  • Using REQUEST_TIMEOUT=30000 fdk run — works locally but doesn’t affect production

The rate limits documentation states that the request method timeout is 15 seconds, extendable up to 30 seconds in 5-second increments. But I cannot find any documentation on how to apply this extension for a published/deployed custom app.

Question: How do I configure the request timeout to 30 seconds for a deployed custom app on the Freshworks platform?

App details:

  • Platform version: 3.0

  • FDK version: 9.8.2

  • App type: Custom app (not marketplace)

  • Request is made from serverless function via $request.invokeTemplate()

Any help would be appreciated. Thanks!

Hi @Mustafa_Kel ,
Welcome to the Freshworks Developer Community!

To increase the request timeout to 30 seconds, please raise a Dev Assist request here:
https://dev-assist.freshworks.com/support/catalog/items/45

Our team will take this request forward.
Thanks for reaching out!
Rohan Kokkula,
Developer Relations at Freshworks

Hey @Rohan_Kokkula1,

Thank you very much! I have already submitted the request, and my app’s timeout has been increased.

However, I noticed that this process is not mentioned in the documentation. I would like to suggest adding it as a reference, so other developers can easily find this solution when facing the same issue.

1 Like

Sure, thanks for flagging this out! @Mustafa_Kel

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