{"action":"closed","issue":{"url":"https://api.github.com/repos/diasdavid/js-libp2p-swarm/issues/37","repository_url":"https://api.github.com/repos/diasdavid/js-libp2p-swarm","labels_url":"https://api.github.com/repos/diasdavid/js-libp2p-swarm/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/diasdavid/js-libp2p-swarm/issues/37/comments","events_url":"https://api.github.com/repos/diasdavid/js-libp2p-swarm/issues/37/events","html_url":"https://github.com/diasdavid/js-libp2p-swarm/issues/37","id":149138090,"number":37,"title":"Uncaught TypeError: Argument must be a string","user":{"login":"diasdavid","id":1211152,"avatar_url":"https://avatars.githubusercontent.com/u/1211152?v=3","gravatar_id":"","url":"https://api.github.com/users/diasdavid","html_url":"https://github.com/diasdavid","followers_url":"https://api.github.com/users/diasdavid/followers","following_url":"https://api.github.com/users/diasdavid/following{/other_user}","gists_url":"https://api.github.com/users/diasdavid/gists{/gist_id}","starred_url":"https://api.github.com/users/diasdavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diasdavid/subscriptions","organizations_url":"https://api.github.com/users/diasdavid/orgs","repos_url":"https://api.github.com/users/diasdavid/repos","events_url":"https://api.github.com/users/diasdavid/events{/privacy}","received_events_url":"https://api.github.com/users/diasdavid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/diasdavid/js-libp2p-swarm/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/diasdavid/js-libp2p-swarm/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":{"login":"dignifiedquire","id":790842,"avatar_url":"https://avatars.githubusercontent.com/u/790842?v=3","gravatar_id":"","url":"https://api.github.com/users/dignifiedquire","html_url":"https://github.com/dignifiedquire","followers_url":"https://api.github.com/users/dignifiedquire/followers","following_url":"https://api.github.com/users/dignifiedquire/following{/other_user}","gists_url":"https://api.github.com/users/dignifiedquire/gists{/gist_id}","starred_url":"https://api.github.com/users/dignifiedquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dignifiedquire/subscriptions","organizations_url":"https://api.github.com/users/dignifiedquire/orgs","repos_url":"https://api.github.com/users/dignifiedquire/repos","events_url":"https://api.github.com/users/dignifiedquire/events{/privacy}","received_events_url":"https://api.github.com/users/dignifiedquire/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-04-18T12:35:06Z","updated_at":"2016-04-24T22:19:34Z","closed_at":"2016-04-24T22:19:34Z","body":"Only a few times, one of the tests fails with the following error:\r\n\r\n```\r\n 1) high level API - with everything mixed all together! dial from tcp+ws to tcp+ws:\r\n     Uncaught TypeError: Argument must be a string\r\n      at TypeError (native)\r\n      at Buffer.write (buffer.js:580:21)\r\n      at Object.exports.bytes.encode (node_modules/protocol-buffers/encodings.js:35:17)\r\n      at Object.encode (eval at <anonymous> (node_modules/generate-function/index.js:55:21), <anonymous>:26:14)\r\n      at Messages._push (node_modules/protocol-buffers-stream/index.js:73:9)\r\n      at Messages.(anonymous function) [as identify] (node_modules/protocol-buffers-stream/index.js:50:12)\r\n      at null.<anonymous> (src/identify.js:90:11)\r\n      at Messages._emit (node_modules/protocol-buffers-stream/index.js:121:40)\r\n      at Messages._onmessage (node_modules/protocol-buffers-stream/index.js:141:14)\r\n      at Messages._write (node_modules/protocol-buffers-stream/index.js:94:38)\r\n      at doWrite (node_modules/readable-stream/lib/_stream_writable.js:313:64)\r\n```\r\n\r\nThis happens inside the identify protocol, when we get back the identify protobuf and protocol-buffer-stream tried to parse. I've tried to diagnose this issue and was unable to find the root cause (specially because it only happens few times, and when I think it is solved, comes back after to torment me again)."}}