SAP Knowledge Base Article - Preview

3325086 - BTP application failed with "internal server error"

Symptom

You found deployed BTP application failed with error "internal server error".

From approuter log, you can see below error:

GET request to <xxx>

completed with status 500 - xs-app.json/routes/2: Format validation failed (Route has cacheControl with no localDir)"}

The project is using standalone approuter, and from project package.json, you can see @sap/approuter version is quite old, such as 6.x.x or even older.

              "engines": {

                             "node":"^12.0.0 || ^14.0.0"

              },

              "dependencies": {

                             "@sap/approuter": "6.x.x"


Read more...

Environment

SAP Business Technology Platform

Product

BTP all versions

Keywords

node, engines, approuter, app router, @sap/approuter, Route has cacheControl with no localDir, xs-app.json/routes/2: Format validation failed , KBA , BC-XS-APR , XSA 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.