Adding timeout in request template 2.3

Hi Guys,

I’m building a custom application in Freshdesk and have to make a request to a third-party API. Since the API is taking time to give response i’m getting a time out error. The default API has 5 second limit.

Could anyone let me know how do i increase the timeout for the API call. Please refer the below code which i had tried but gives me the following error.

Request template 'extractorRequest' options must NOT have additional properties 'timeout' in config/requests.json.

requests.json

  "extractorRequest": {
    "schema": {
      "protocol": "https",
      "method": "POST",
      "host": "fh0dptzb66.execute-api.eu-central-1.amazonaws.com",
      "path": "/production/hera-cache?",
      "headers": {
        "Content-Type": "application/json"
      }
    },
    "options": {
      "timeout": 20
    }
  }

Thanks in advance :slightly_smiling_face:

Hey Mohammed,
as far as I know, there is no option for a timeout in 2.3 anymore.
At least that is my interpretation of what is mentioned in the documentation: Request Method

But would be interesting if my interpretation is correct and if there are plans that a timeout will have a comeback in 2.3!

Cheers,
Tom

1 Like

Got it. Thanks for letting me know. I had referred to this post. Hence had a tough there might be something with increasing the rate limit.

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