{"action":"created","issue":{"url":"https://api.github.com/repos/feross/bittorrent-dht/issues/102","labels_url":"https://api.github.com/repos/feross/bittorrent-dht/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/feross/bittorrent-dht/issues/102/comments","events_url":"https://api.github.com/repos/feross/bittorrent-dht/issues/102/events","html_url":"https://github.com/feross/bittorrent-dht/issues/102","id":126623101,"number":102,"title":"Crash hard when the user tries get or put before `ready` is emitted?","user":{"login":"paulkernfeld","id":433803,"avatar_url":"https://avatars.githubusercontent.com/u/433803?v=3","gravatar_id":"","url":"https://api.github.com/users/paulkernfeld","html_url":"https://github.com/paulkernfeld","followers_url":"https://api.github.com/users/paulkernfeld/followers","following_url":"https://api.github.com/users/paulkernfeld/following{/other_user}","gists_url":"https://api.github.com/users/paulkernfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/paulkernfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulkernfeld/subscriptions","organizations_url":"https://api.github.com/users/paulkernfeld/orgs","repos_url":"https://api.github.com/users/paulkernfeld/repos","events_url":"https://api.github.com/users/paulkernfeld/events{/privacy}","received_events_url":"https://api.github.com/users/paulkernfeld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-14T10:23:52Z","updated_at":"2016-01-14T12:03:11Z","closed_at":null,"body":"Could I make a PR that throws an error if the user calls put or get too soon? This was tripping me up, and I think it was also causing [a problem](https://github.com/maxogden/dhtkv/pull/5) with dhtkv.\r\n\r\nIs there any legit use case for calling get or put before ready is emitted? For me, it caused the calls to fail while appearing to succeed."},"comment":{"url":"https://api.github.com/repos/feross/bittorrent-dht/issues/comments/171627082","html_url":"https://github.com/feross/bittorrent-dht/issues/102#issuecomment-171627082","issue_url":"https://api.github.com/repos/feross/bittorrent-dht/issues/102","id":171627082,"user":{"login":"mafintosh","id":376661,"avatar_url":"https://avatars.githubusercontent.com/u/376661?v=3","gravatar_id":"","url":"https://api.github.com/users/mafintosh","html_url":"https://github.com/mafintosh","followers_url":"https://api.github.com/users/mafintosh/followers","following_url":"https://api.github.com/users/mafintosh/following{/other_user}","gists_url":"https://api.github.com/users/mafintosh/gists{/gist_id}","starred_url":"https://api.github.com/users/mafintosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mafintosh/subscriptions","organizations_url":"https://api.github.com/users/mafintosh/orgs","repos_url":"https://api.github.com/users/mafintosh/repos","events_url":"https://api.github.com/users/mafintosh/events{/privacy}","received_events_url":"https://api.github.com/users/mafintosh/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T12:03:11Z","updated_at":"2016-01-14T12:03:11Z","body":"As of 6.0 you shouldnt have to wait for ready any more. The bootstrap table is now being build in the background reducing latency a lot of cmd line tools like dhtkv. Could you share a test case that works if you wait for ready but fails if you dont? Then we'll try to fix it :)"}}