Snippets

Pete Matthews error message

Created by Pete Matthews

File snippet.txt Added

  • Ignore whitespace
  • Hide word diff
+
+C:\ZPACS\projects\sdg_hana>npm start
+
+> sdg_hana@1.0.0 start C:\ZPACS\projects\sdg_hana
+> npx cds run
+
+
+[cds] - model loaded from 4 file(s):
+
+  db\schema.cds
+  srv\SdgData-service.cds
+  srv\SdgTable-service.cds
+  node_modules\@sap\cds\common.cds
+
+[cds] - connect to hana db {}
+[cds] - serving DataService { at: '/data' }
+[cds] - serving TableService { at: '/table' }
+
+[cds] - launched in: 1645.126ms
+[cds] - server listening on { url: 'http://localhost:4004' }
+[ terminate with ^C ]
+
+GET /data/SdgData
+[2020-06-06T10:24:30.182Z | ERROR | 1956796]: Cannot read property 'schema' of undefined
+[2020-06-06T10:24:30.184Z | ERROR | 1956796]: Error stacktrace: TypeError: Cannot read property 'schema' of undefined     at C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-hana\client\Client.js:93:31     at new Promise (<anonymous>)     at Client.connect (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-hana\client\Client.js:66:12)     at SQLDatabase._testConnection (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\connect\Service.js:314:18)     at SQLDatabase._getAndCheckCredentials (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\connect\Service.js:296:17)     at SQLDatabase._createPool (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\connect\Service.js:243:24)     at SQLDatabase.acquire (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\connect\Service.js:149:49)     at SQLDatabase.run (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\connect\Service.js:386:31)     at OdataContext.context.run (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\services\Service.js:968:30)     at Object.handler (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\services\handlers\onReadDraft.js:1055:32)
+[INTERNAL ERROR] TypeError: Cannot read property 'schema' of undefined
+    at C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-hana\client\Client.js:93:31
+    at new Promise (<anonymous>)
+    at Client.connect (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-hana\client\Client.js:66:12)
+    at SQLDatabase._testConnection (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\connect\Service.js:314:18)
+    at SQLDatabase._getAndCheckCredentials (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\connect\Service.js:296:17)
+    at SQLDatabase._createPool (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\connect\Service.js:243:24)
+    at SQLDatabase.acquire (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\connect\Service.js:149:49)
+    at SQLDatabase.run (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\connect\Service.js:386:31)
+    at OdataContext.context.run (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\services\Service.js:968:30)
+    at Object.handler (C:\ZPACS\projects\sdg_hana\node_modules\@sap\cds-runtime\lib\cds-services\services\handlers\onReadDraft.js:1055:32)
+Please report this error.
+
+npm ERR! code ELIFECYCLE
+npm ERR! errno 1
+npm ERR! sdg_hana@1.0.0 start: `npx cds run`
+npm ERR! Exit status 1
+npm ERR!
+npm ERR! Failed at the sdg_hana@1.0.0 start script.
+npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
+
+npm ERR! A complete log of this run can be found in:
+npm ERR!     C:\Users\pfmat\AppData\Roaming\npm-cache\_logs\2020-06-06T10_24_30_407Z-debug.log
+
+C:\ZPACS\projects\sdg_hana>
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.