Symptom
A CAP Node.js service access fails with 500 HTTP code (Internal Server Error) in SAP BTP CF however, when the service is executed from BAS, the service is accessible.
In CF subaccount the application error log contains such entries:
[APP/PROC/WEB/0] OUT [cds] - GET /src/DataList
[APP/PROC/WEB/0] ERR [cds] - Error: Cannot find module 'sqlite3'
[APP/PROC/WEB/0] ERR Require stack:
[APP/PROC/WEB/0] ERR - /home/vcap/app/node_modules/@sap/cds/libx/_runtime/sqlite/Service.js
...
[RTR/3] OUT backendaccess.cfapps.eu100.hana.ondemand.com - "GET /src/DataList HTTP/1.1" 500
Read more...
Environment
SAP BTP CF
Keywords
KBA , BC-XS-CDX-NJS , SAP CAP – node.js runtime , 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.