cancel
Showing results for 
Search instead for 
Did you mean: 

Gateway Timeout CAP application - is there a parameter we can set?

07-03-2024 2:59 PM
DanielSchneider Participant
4179 views 3 comments Go to solution
SAP Managed Tags
Labels
CAPparameterSAPUI5timeout
Subscribe

Hi community,

we have a CAP application deployed to BTP with managed app router (SAP Build Workzone).

The deployement is done via MTA file.

An operation implemented in Nodejs can sometimes take more than 30 seconds. Even though the backend is still proceeding, the frontend is getting back a Gateway timeout error after exactly 30 seconds.

I've tried to set some timeout parameters in the MTA file, for example here (trying to set it to 300 seconds):

DanielSchneider_0-1720011302823.png

This results into this:

DanielSchneider_1-1720011449386.png

But the application still aborts after 30 seconds.

Is there a a way to increase those 30 seconds?

Thank you very much
Daniel

 

Accepted Solutions (1)

Accepted Solutions (1)

Willem_Pardaens
Product and Topic Expert
Product and Topic Expert

Hi Daniel,

I experienced the exact same scenario a few days ago: a long running backend task, but Fiori didn't want to wait and threw the error after 30 seconds.

I tried the same `HTML5.Timeout` setting and a first test showed it didn't work. However, I kept the setting there, and the next day it suddenly worked.

So I think it comes down to some caching in the inner workings of the managed approuter. Try with a full redeployment, give it some time, and eventually it will abide by your setting.

DanielSchneider
Participant

Hi Willem,

thanks for your reply!

I can confirm this: It seems to have something to do with the caching mechanism, as you explained.

It also works for me now. To be able to test it (with the parameter active and inactive), I've tested the application now in a private mode browser and could reproduce it each time. Before that, I've always refreshed the HTML5 content channel in SAP Build Workzone (which should handle cache buster index imho). But that doesn't seem to work in this scenario.

Nevertheless, I'm happy that this parameter works, thanks for your fast reply! 🙂

All the best
Daniel

Answers (1)

Answers (1)

PamoliBanerjee
Explorer
0 Likes