2024 Oct 31 4:32 AM
This is a part of the code...
const hana = require('@sap/hana-client'); var connOptions = { serverNode: '', UID: '', PWD: '', ssValidateCertificate: 'true', }; const server = express(); ....etc
The code runs as a windows process. Everything works perfectly while the user who owns the process is logged in.
If I close the user's session, the process continues working, listening to requests and making queries to SAP, but it returns this error:
Error: Connection failed (RTE:[1000013] The system cannot find the file specified.
If I log in to the server again with that user, it already makes the requests correctly.
I don't know if the user is not logged in and is trying to search for certificates or something.
Thanks!
2024 Nov 01 1:15 PM
So, what happens when you change `ssValidateCertificate: 'true'` to 'false'? I would assume this is where it is looking for a file with certificates.
2024 Nov 02 6:54 AM
2024 Nov 02 8:53 AM
I have tried another library, SAP/node-hdb: SAP HANA Database Client for Node, and to my surprise with the same configuration it does work with the user logged in and not logged in. I'll leave this one. Thank you very much for the reply.
2024 Nov 05 11:05 PM
Oh, if you are using SAP HANA Cloud database, then it supports encrypted connections only, so `connOptions.encrypt = 'false';` should not allow a connection to be established.