Symptom
- CAP service POST fails:
{"error":{"message":"No database connection","code":"NO_DATABASE_CONNECTION","@Common.numericSeverity":4}} - cds watch error:
cds serve all --with-mocks --in-memory?
( live reload enabled for browsers )___________________________
[cds] - loaded model from 3 file(s):
srv\service.cds
node_modules\@sap\cds\srv\outbox.cds
db\index.cds[cds] - using auth strategy {
kind: 'mocked',
impl: 'node_modules\\@sap\\cds\\lib\\srv\\middlewares\\auth\\basic-auth.js'
}
[cds] - serving test {
at: [ '/odata/v4/test' ],
decl: 'srv\\service.cds:3',
impl: 'node_modules\\@sap\\cds\\srv\\app-service.js'
}
[cds] - server listening on { url: 'http://localhost:4004' }
[cds] - server v9.6.0 launched in 710 ms
[cds] - [ terminate with ^C ][odata] - POST /odata/v4/test/Tests
[error] - 500 - Error: No database connection
at ApplicationService.handle_crud_requests (...\node_modules\@sap\cds\libx\_runtime\common\generic\crud.js:14:18)
at next (...\node_modules\@sap\cds\lib\srv\srv-dispatch.js:57:36)
at ApplicationService.handle (...\node_modules\@sap\cds\lib\srv\srv-dispatch.js:60:6) {
numericSeverity: 4,
code: 'NO_DATABASE_CONNECTION'
}
Read more...
Environment
SAP CAP Node.js
Product
Keywords
@cap-js/sqlite, NO_DATABASE_CONNECTION, Error: No database connection , 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.
SAP Knowledge Base Article - Preview