cancel
Showing results for 
Search instead for 
Did you mean: 

XSA Application router timeout settings

In our project we are using XS-A.MTA deployment descriptor and application router are used to deploy and route several modules. Issue we have is that some API calls to our applications need up to 1 minute to return response while router is throwing timeout error after 30 seconds. Is there any way to increase timeout time in router?

logs snippet:
4/27/18 11:34:22:280 AM [APP/11-0] OUT 11:32:22 [...] INFO *API METHOD CALL*
4/27/18 11:34:52:000 AM [RTR] OUT *GATEWAY TIMEOUT MESSAGE TO THE CALLER*
4/27/18 11:35:09:000 AM [APP/11-0] OUT *API RESPONDED WITH 200 (call finished)*

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate

There is a timeout parameter, named: timeout, at the destination level in the mta.yaml. The default is 30000 ms.

0 Kudos

Thank you Thomas, this helps 🙂

0 Kudos

Hi Thomas and Olga,

I also met the same issue, but cannot figure out how to change this timeout. Also I tried to find any documentation about timeout in mta.yaml without success.

Can you please help me giving simple example of this part mta.yaml. For example, my case:

- name: web

type: html5

path: web

requires:

- name: core-backend

group: destinations

properties:

name: core-backend

url: ~{url}


Thanks

thomas_jung
Developer Advocate
Developer Advocate

The documentation is in the readme file of the @sap/approuter module. Just add timeout: <value> in the properties section under group: destinations.

Answers (1)

Answers (1)

0 Kudos

Thanks Olga for the question and Thomas for the replies. Now it works for me.

My mistake was that I did not rebuild both projects (web and backend) after the change.

Just short summary from my mta.yaml:

- name: web

type: html5

path: web

requires:

- name: core-backend

group: destinations

properties:

name: core-backend

url: ~{url}

timeout: 120000 # instead of default 30000ms