on 04-30-2018 9:26 AM
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)*
There is a timeout parameter, named: timeout, at the destination level in the mta.yaml. The default is 30000 ms.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
The documentation is in the readme file of the @sap/approuter module. Just add timeout: <value> in the properties section under group: destinations.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.