Skip to Content
0
Jul 27, 2020 at 04:01 PM

CAP CDS Node.js cannot query to Hana Cloud

133 Views Last edit Jul 27, 2020 at 04:19 PM 2 rev

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)