cancel
Showing results for 
Search instead for 
Did you mean: 

CAP CDS Node.js cannot query to Hana Cloud

0 Kudos

Hi,

I have CAP CDS Nodejs service and was running properly so far. Suddenly started giving the below exception, whenever I invoke OData API. Does anyone has encountered similar issue?

020-07-27T15:23:47.087+0000 [APP/PROC/WEB/0] OUT GET /monitoringService/SenderOrgs?$expand=sender,receiver

2020-07-27T15:23:47.160+0000 [APP/PROC/WEB/0] ERR [2020-07-27T15:23:47.160Z | ERROR | 1984305]: Invalid parameter 2 for function 'setClientInfo(key, value)': expected undefined|null|string, received array.

2020-07-27T15:23:47.160+0000 [APP/PROC/WEB/0] ERR [2020-07-27T15:23:47.160Z | ERROR | 1984305]: Error stacktrace: Error: Invalid parameter 2 for function 'setClientInfo(key, value)': expected undefined|null|string, received array. at /home/vcap/app/node_modules/@sap/cds-runtime/lib/cds-hana/client/Client.js.setSessionContext (/home/vcap/app/node_modules/@sap/cds-runtime/lib/cds-hana/client/Client.js:558:17) at /home/vcap/app/node_modules/@sap/cds-runtime/lib/cds-hana/client/Client.js.setUser (/home/vcap/app/node_modules/@sap/cds-runtime/lib/cds-hana/client/Client.js:572:10) at /home/vcap/app/node_modules/@sap/cds-runtime/lib/cds-services/connect/Pool.js.acquire (/home/vcap/app/node_modules/@sap/cds-runtime/lib/cds-services/connect/Pool.js:98:30)

vansyckel
Advisor
Advisor
0 Kudos

Hi Sreekanth,

What changed? For example, was there a deployment with new node modules? Something must have caused this.

Best,
Sebastian

Accepted Solutions (0)

Answers (0)