{"action":"created","issue":{"url":"https://api.github.com/repos/duniter/duniter/issues/616","repository_url":"https://api.github.com/repos/duniter/duniter","labels_url":"https://api.github.com/repos/duniter/duniter/issues/616/labels{/name}","comments_url":"https://api.github.com/repos/duniter/duniter/issues/616/comments","events_url":"https://api.github.com/repos/duniter/duniter/issues/616/events","html_url":"https://github.com/duniter/duniter/issues/616","id":179595916,"number":616,"title":"TypeError: err.indexOf is not a function","user":{"login":"RavanH","id":1184853,"avatar_url":"https://avatars.githubusercontent.com/u/1184853?v=3","gravatar_id":"","url":"https://api.github.com/users/RavanH","html_url":"https://github.com/RavanH","followers_url":"https://api.github.com/users/RavanH/followers","following_url":"https://api.github.com/users/RavanH/following{/other_user}","gists_url":"https://api.github.com/users/RavanH/gists{/gist_id}","starred_url":"https://api.github.com/users/RavanH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RavanH/subscriptions","organizations_url":"https://api.github.com/users/RavanH/orgs","repos_url":"https://api.github.com/users/RavanH/repos","events_url":"https://api.github.com/users/RavanH/events{/privacy}","received_events_url":"https://api.github.com/users/RavanH/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/duniter/duniter/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/duniter/duniter/labels/Sync","name":"Sync","color":"fef000"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/duniter/duniter/milestones/34","html_url":"https://github.com/duniter/duniter/milestones/0.40","labels_url":"https://api.github.com/repos/duniter/duniter/milestones/34/labels","id":1936886,"number":34,"title":"0.40","description":"New major protocol version v0.4 which will modify Web of Trust rules.","creator":{"login":"M5oul","id":4758871,"avatar_url":"https://avatars.githubusercontent.com/u/4758871?v=3","gravatar_id":"","url":"https://api.github.com/users/M5oul","html_url":"https://github.com/M5oul","followers_url":"https://api.github.com/users/M5oul/followers","following_url":"https://api.github.com/users/M5oul/following{/other_user}","gists_url":"https://api.github.com/users/M5oul/gists{/gist_id}","starred_url":"https://api.github.com/users/M5oul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M5oul/subscriptions","organizations_url":"https://api.github.com/users/M5oul/orgs","repos_url":"https://api.github.com/users/M5oul/repos","events_url":"https://api.github.com/users/M5oul/events{/privacy}","received_events_url":"https://api.github.com/users/M5oul/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":3,"state":"open","created_at":"2016-08-11T13:31:39Z","updated_at":"2016-09-28T14:24:05Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-09-27T19:54:47Z","updated_at":"2016-09-28T14:49:21Z","closed_at":null,"body":"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:\r\n\r\n```bash\r\n2016-09-27T16:57:21+00:00 - ^[[32minfo^[[39m: Try with 88.174.120.187:9330 HnFcSm\r\n2016-09-27T16:57:21+00:00 - ^[[32minfo^[[39m: Sync started.\r\n2016-09-27T16:57:21+00:00 - ^[[32minfo^[[39m: Getting remote blockchain info...\r\n2016-09-27T16:57:21+00:00 - ^[[32minfo^[[39m: Downloading Blockchain...\r\n2016-09-27T16:57:22+00:00 - ^[[31merror^[[39m: TypeError: err.indexOf is not a function\r\n    at /opt/duniter/sources/app/lib/sync.js:334:17\r\n    at throw (native)\r\n    at onRejected (/opt/duniter/sources/node_modules/co/index.js:81:24)\r\n    at _rejected (/opt/duniter/sources/node_modules/q/q.js:804:24)\r\n    at /opt/duniter/sources/node_modules/q/q.js:830:30\r\n    at Promise.when (/opt/duniter/sources/node_modules/q/q.js:1064:31)\r\n    at Promise.promise.promiseDispatch (/opt/duniter/sources/node_modules/q/q.js:748:41)\r\n    at /opt/duniter/sources/node_modules/q/q.js:564:44\r\n    at flush (/opt/duniter/sources/node_modules/q/q.js:110:17)\r\n    at _combinedTickCallback (node.js:376:9)\r\n    at process._tickCallback (node.js:407:11)\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/duniter/duniter/issues/comments/250189341","html_url":"https://github.com/duniter/duniter/issues/616#issuecomment-250189341","issue_url":"https://api.github.com/repos/duniter/duniter/issues/616","id":250189341,"user":{"login":"RavanH","id":1184853,"avatar_url":"https://avatars.githubusercontent.com/u/1184853?v=3","gravatar_id":"","url":"https://api.github.com/users/RavanH","html_url":"https://github.com/RavanH","followers_url":"https://api.github.com/users/RavanH/followers","following_url":"https://api.github.com/users/RavanH/following{/other_user}","gists_url":"https://api.github.com/users/RavanH/gists{/gist_id}","starred_url":"https://api.github.com/users/RavanH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RavanH/subscriptions","organizations_url":"https://api.github.com/users/RavanH/orgs","repos_url":"https://api.github.com/users/RavanH/repos","events_url":"https://api.github.com/users/RavanH/events{/privacy}","received_events_url":"https://api.github.com/users/RavanH/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T14:49:21Z","updated_at":"2016-09-28T14:49:21Z","body":"Then adding `typeof(err) !== 'undefined' &&` at the start of the if arguments? Or maybe it just needs to be  err.message.indexOf(...) ?"}}
{"actor":{"display_login":"RavanH"}}