Closed sabatale closed 1 year ago
Now, we're using fdk 9.0.2 with request templates. From what we can see in this repo, the correct way to set a timeout for both local testing and production would be to add { "options": "timeout": 10 } to our requests.json for each call.
Thanks for creating this issue @sabatale . Just in case you know, can you share any link to documentation or another source where this is documented? I must be unaware.
I took it directly from the user guide here https://github.com/freshworks-developers/request-method-samples/blob/e26bed8585c5ce44064933f4864f99b30df0b6b2/UserGuide.md?plain=1#L248 but this may have changed since the beta?
Can you confirm there is no way to set a timeout manually?
The timeout option is available for local testing. We found some users using high latency systems during their development, so this configuration helped app developers succeed in their local development scenarios.
However in production, the only is to raise a request with the Freshworks team at dev-assist.freshworks.com
Unfortunately we still get an error stating there is a timeout, no matter what we do. We'll open a ticket. Thanks!
Hello,
We just wanted some clarifications around the Freshteam timeout as we're getting 502 errors with not much explanation other than the following in fdk.log: 0400 [debug] ([34mrequest.js[0m) [31mrequest came back with error as ESOCKETTIMEDOUT[0m.
The official documentation refers to
REQUEST_TIMEOUT=10000 fdk run
. For CMD Windows, the equivalent would beset REQUEST_TIMEOUT=10000
before running fdk run. But we don't see a difference, and the request stills ends at around 5.2sec. Is this still accurate? And that's only for local testing anyway.Now, we're using fdk 9.0.2 with request templates. From what we can see in this repo, the correct way to set a timeout for both local testing and production would be to add
{ "options": "timeout": 10 }
to our requests.json for each call. However we get the following error in CLI:must NOT have additional properties 'timeout' in config/requests.json
(from this link). Is this the correct way to do it?@Saif-Shines @kaustavdm
Thanks!
E.g.,