207
Views
5
Comments
Solved
How to increase timeout for exposed API
Application Type
Reactive

Hi All,

I have exposed one api(api1) which is getting details along with a URL, there is another api (api2)called in the same logic, to which we are passing the URL and that api is downloading a file to the server and providing us a response, following the response we need to send response to api 1.

In this whole operation I am getting time out error. How can I resolve this?


Thanks

Shivangi

2019-03-12 12-28-20
Shivangi Thakur
Solution

Hi All,


My issue is resolved, I used SetRequestTimeout method from HTTP request handler to set the timeout.

2023-04-16 15-25-31
Krishnanand Pathak

Hi Shivangi,

The timeout is caused by consumed api(api2).

Just increase the timeout of consumed api(api2).
No need to increase timeout for api1. It should work.

Regards
Krishnanand Pathak

2019-03-12 12-28-20
Shivangi Thakur

We already tried this and it is not working.

2022-01-13 11-06-04
Neha Sheikh
Champion

Hello Shivangi,

The correct way is already mentioned above. If it is not working in that case, the consumer application needs to increase the Server request Timeout. Which application are you using? is it OutSystems based which is consuming the API?

1) Increase the timeout in Seconds for Exposed Rest API

2) Increase Server request timeout for consuming modules.


Thanks,

Neha

2019-03-12 12-28-20
Shivangi Thakur

we tried the consumed api separately and  it took 15 secs to complete the functionality.

We built the api using .net.

2019-03-12 12-28-20
Shivangi Thakur
Solution

Hi All,


My issue is resolved, I used SetRequestTimeout method from HTTP request handler to set the timeout.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.