Problem with code example in node

Added by Bjørnar almost 7 years ago

Hello, when i do the code example in node i get the following:

return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT, no such file or directory 'NEXTAPI_TEST_public.pem'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.readFileSync (fs.js:284:15)
at encryptLogin (/home/hjemme/nodetest.js:65:22)
at login (/home/hjemme/nodetest.js:8:14)
at Object.<anonymous> (/home/hjemme/nodetest.js:80:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)

I've installed all packages and dependencies, and are running the node code example with my username and pass.


Replies (1)

RE: Problem with code example in node - Added by Nordnet Simon almost 7 years ago

It looks like you are missing the file NEXTAPI_TEST_public.pem. It can be downloaded here: https://api.test.nordnet.se/projects/api/files

(1-1/1)