TypeError: err.indexOf is not a function
Created by: RavanH
When syncing from command line duniter sync cgeek.fr 9330
on Raspberry Pi 3 with Duniter 0.31.0b13 and Node.js 4.5.0, this error appeared in the log:
2016-09-27T16:57:21+00:00 - ^[[32minfo^[[39m: Try with 88.174.120.187:9330 HnFcSm
2016-09-27T16:57:21+00:00 - ^[[32minfo^[[39m: Sync started.
2016-09-27T16:57:21+00:00 - ^[[32minfo^[[39m: Getting remote blockchain info...
2016-09-27T16:57:21+00:00 - ^[[32minfo^[[39m: Downloading Blockchain...
2016-09-27T16:57:22+00:00 - ^[[31merror^[[39m: TypeError: err.indexOf is not a function
at /opt/duniter/sources/app/lib/sync.js:334:17
at throw (native)
at onRejected (/opt/duniter/sources/node_modules/co/index.js:81:24)
at _rejected (/opt/duniter/sources/node_modules/q/q.js:804:24)
at /opt/duniter/sources/node_modules/q/q.js:830:30
at Promise.when (/opt/duniter/sources/node_modules/q/q.js:1064:31)
at Promise.promise.promiseDispatch (/opt/duniter/sources/node_modules/q/q.js:748:41)
at /opt/duniter/sources/node_modules/q/q.js:564:44
at flush (/opt/duniter/sources/node_modules/q/q.js:110:17)
at _combinedTickCallback (node.js:376:9)
at process._tickCallback (node.js:407:11)