cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Node request getting timed out after 30 seconds

rahilkhan4u
Explorer
0 Likes
5,324

I have a node application deployed on BTP space, All the of request are getting timeout after 30 seconds.

I have tried setting the request timeout manually to 2 minutes from UI and from node itself, But nothing works. After going through lots of blogs, I found that there are some server level settings where the node application is deployed. Is there any way to change the files of server or setting of the server from node application?

Thanks in Advance.

For testing purpose I created below endpoint and waiting for 2 minutes before sending the response.

But when I hit this endpoint from UI, the request only last for 30 seconds and it gets timed out. This is how I am calling this endpoint.

Also note that, Request is getting timed out only after deployment, it is working fine on local.

Accepted Solutions (1)

Accepted Solutions (1)

junwu
SAP Champion
SAP Champion
group: destinations 
properties: 
forwardAuthToken: true 
name: *** 
url: **** 
timeout: 600000<br>

can you try this in your yaml file?

rahilkhan4u
Explorer
0 Likes

Thank You for the Response Jun,

This how I have added the timeout parameter in the MTA file. Please confirm if this is okay.

junwu
SAP Champion
SAP Champion
0 Likes

no.

it should be your ui app module, which requires service module as dependency.

rahilkhan4u
Explorer
0 Likes

Thanks alot Jun, After adding the timeout parameter in app service the issue gets resolved.

For others, this is where I added the timeout.

Thanks,

Rahil Khan

Answers (0)