hi ,
i am trying to create an app in freshdesk , while developing i find it very hard to make calls to third party api’s . as requests timeouts after 5 seconds.
can we increase the timeout while developing the app using fdk ??
thanks
hi ,
i am trying to create an app in freshdesk , while developing i find it very hard to make calls to third party api’s . as requests timeouts after 5 seconds.
can we increase the timeout while developing the app using fdk ??
thanks
If you need to increase the API request timeout, it is not possible when using the request method. Alternatively, you can use another method, such as axios, only during development. However, it is not recommended for use in production.
Thanks & Regards,
Gopi
You can increase the timeout for testing.
Please find the how-to here: Freshworks Developer Docs | Use request method to place secure HTTP calls
Best
Tom
Hey @Marri_Sri_Rahul_Sidd,
You can try REQUEST_TIMEOUT=10000 fdk run
. Let me know if this is what you tried.
And what timeout value are you increasing this to?
Noticed you are on Windows, can you set the environment variable on Powershell with REQUEST_TIMEOUT
and the value and then run the app with fdk run
?
Let me know if that works.
@Marri_Sri_Rahul_Sidd, yes it works in Mac. For Windows, ideally setting as environment variable would work.
Also, the limits for timeout are -
Minimum value for REQUEST_TIMEOUT: 5000
Maximum value for REQUEST_TIMEOUT: 10000
Yes please, reset to 10000 and try running the command fdk run
.