Symptom
BTP application failed with error "internal server error".
From approuter log, error message as below:
*******
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, @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
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.
SAP Knowledge Base Article - Preview