Bitcoin Cryptocurrency Mastering Development

My lightning node is unreachable and lightning-rpc’: Connection refused

I’m trying to use c-lightning on my raspberry. When start the lightning daemon I get two errors: the first one is: 2020-06-05T17:02:08.784Z DEBUG connectd: Failed to connect 10 socket: Network is unreachable My .lightning/config is: alias=LIGHTNING_NODE_ROCK rgb=DDFF06 addr=:9735 log-level=debug network=testnet bitcoin-cli=/usr/local/bin/bitcoin-cli bitcoin-datadir=/home/bitcoin/.bitcoin log-prefix=raspi-lightning ignore-fee-limits=true fee-base=10 bitcoin-rpcuser=user bitcoin-rpcpassword=userpass bitcoin-rpcconnect= bitcoin-rpcport=18332 my bitcoin.conf is: testnet=1 [test] rpcuser=user […]

Mastering Development

node express – http.createServer().listen() – EPROTOTYPE: protocol wrong type for socket

I recently upgdated my MacOS to Catalina. When trying start up my local Node Epress app using: npm start I get this error: xxxxx:app xxxx$ npm start > xxxx@0.0.1 start /Users/xxxxx/Documents/GitHub/xxxxxx/app > node ./bin/www /Users/xxxxx/Documents/GitHub/xxxxxx/app/bin/www:76 throw error; ^ Error: listen EPROTOTYPE: protocol wrong type for socket at Server.setupListenHandle [as _listen2] (net.js:1281:19) at listenInCluster (net.js:1346:12) […]

Development Linux

EADDRINUSE on every port in Node/Express.js event after restart linux

I am running node with express.js over it on Linux. It was working but now when I start my server the followng error is displayed: Error: listen EADDRINUSE: address already in use Output: events.js:282 throw er; // Unhandled ‘error’ event ^ Error: listen EADDRINUSE: address already in use at Server.setupListenHandle [as _listen2] (net.js:1308:16) […]

Development JSON

Access part of a JSON formated python requests

I am only beginning to code in Python and I still try to figure out how everything works, so if the logic behind it is not right, please correct me. I am writing a script that queries one device and compares the returned data to another device. The goal is to keep both devices configuration […]