SAP Knowledge Base Article - Preview

3606858 - 504 Error in BTP CAP Application which is connecting to S/4HANA

Symptom

  • 504 gateway timeout error occurs when calling a request from CAP application to S/4HANA on-premise system after 30s.
  • The flow is: approuter --- srv-api ---> CAP service --- destination ---> backend (S/4HANA on premise system).
  • In the destinations which is to backend, already add "HTML5.Timeout" in the additional property and set it as 120000 ms. But the issue persists.
  • An example is:
    Reproduce the issue and collect HTTP trace following KBA 1990706.
    In the HTTP trace, there is a POST request to /<xxxxx>/odata/v4/<xx>/$batch completed with status 504.
    The content of the response is: Gateway Timeout

 "Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."


Read more...

Environment

  • SAP Business Technology Platform -SAP BTP
  • SAP Business Application Studio - SAP BAS
  • SAP Cloud Application Programming Model - SAP CAP
  • Cloud Foundry - CF

Product

SAP Business Application Studio all versions ; SAP Business Technology Platform all versions ; SAP Cloud Application Programming Model all versions

Keywords

504, BTP CAP, S/4HANA, HTML5.Timeout, SAP BTP Application Router, mta.yaml, timeout, xs-app.json, gateway timeout , KBA , BC-CP-APR , SAP BTP Application Router , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.