Closed cyclopse87 closed 4 years ago
Can you post the JavaScript or TypeScript code you’re trying to run?
I am trying to run the producer.mjs example code on your blog.
I first got the following error after running NDNTS_NFDREG=1 node ./producer.mjs
$ NDNTS_NFDREG=1 node ./producer.mjs
(node:13199) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED /run/nfd.sock
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:13199) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:13199) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
On further inspection I also noticed am getting a similar error when i try to run nfdc.
The examples in Getting Started with NDNts in Node.js require local NFD to be running.
Error: connect ECONNREFUSED /run/nfd.sock indicates NFD is not accepting connections on /run/nfd.sock
socket.
On the other hand, this line
1590914901.729389 INFO: [nfd.UnixStreamChannel] [unix:///run/nfd.sock] Creating channel
seems to suggest that the socket listener is opened at the correct path.
Given nfdc
is also not working, you'll need to fix NFD problems first.
Join nfd-dev mailing list and ask there.
Ok great wanted to make sure it was an NFD issue as this bit confused me too.
On the other hand, this line
1590914901.729389 INFO: [nfd.UnixStreamChannel] [unix:///run/nfd.sock] Creating channel
seems to suggest that the socket listener is opened at the correct path.
Ok thanks anyway great work on this library BTW.
I seem to be running into this error when i run this on a raspberry pi 4b its seems to be working fine on my laptop.
I get the following error even when i run nfdc status, but when i run nfd-start everything looks fine