Skip to content

Instantly share code, notes, and snippets.

@nannal
Created April 14, 2017 10:08
Show Gist options
  • Save nannal/0be960afccd650d3099bb1fbecc5ce6f to your computer and use it in GitHub Desktop.
Save nannal/0be960afccd650d3099bb1fbecc5ce6f to your computer and use it in GitHub Desktop.
$ jsipfs daemon
Initializing daemon...
Swarm listening on /ip4/127.0.0.1/tcp/4003/ws/ipfs/QmUehysB4JHUEakBFQcxVSKdM2DFi51DmSraBU2R6gYn6E
Swarm listening on /ip4/127.0.0.1/tcp/4002/ipfs/QmUehysB4JHUEakBFQcxVSKdM2DFi51DmSraBU2R6gYn6E
Swarm listening on /ip4/192.168.2.102/tcp/4002/ipfs/QmUehysB4JHUEakBFQcxVSKdM2DFi51DmSraBU2R6gYn6E
/usr/local/lib/node_modules/ipfs/src/http-api/index.js:73
const api = config.Addresses.API.split('/')
^
TypeError: config.Addresses.API.split is not a function
at node._repo.config.get (/usr/local/lib/node_modules/ipfs/src/http-api/index.js:73:44)
at store.get (/usr/local/lib/node_modules/ipfs/node_modules/ipfs-repo/src/config.js:27:9)
at /usr/local/lib/node_modules/ipfs/node_modules/graceful-fs/graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:416:3)
----config---
{
"Addresses": {
"Swarm": [
"/ip4/0.0.0.0/tcp/4002",
"/ip4/127.0.0.1/tcp/4003/ws"
],
"API": [
"/ip4/127.0.0.1/tcp/5001"
],
"Gateway": "/ip4/127.0.0.1/tcp/9090"
},
"Discovery": {
"MDNS": {
"Enabled": true,
"Interval": 10
},
"webRTCStar": {
"Enabled": true
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment