{"action":"created","issue":{"url":"https://api.github.com/repos/gundb/gun-level/issues/48","repository_url":"https://api.github.com/repos/gundb/gun-level","labels_url":"https://api.github.com/repos/gundb/gun-level/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/gundb/gun-level/issues/48/comments","events_url":"https://api.github.com/repos/gundb/gun-level/issues/48/events","html_url":"https://github.com/gundb/gun-level/issues/48","id":300880464,"node_id":"MDU6SXNzdWUzMDA4ODA0NjQ=","number":48,"title":"fatal crash related to gun.off()","user":{"login":"leonardpauli","id":1329834,"node_id":"MDQ6VXNlcjEzMjk4MzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1329834?v=4","gravatar_id":"","url":"https://api.github.com/users/leonardpauli","html_url":"https://github.com/leonardpauli","followers_url":"https://api.github.com/users/leonardpauli/followers","following_url":"https://api.github.com/users/leonardpauli/following{/other_user}","gists_url":"https://api.github.com/users/leonardpauli/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardpauli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardpauli/subscriptions","organizations_url":"https://api.github.com/users/leonardpauli/orgs","repos_url":"https://api.github.com/users/leonardpauli/repos","events_url":"https://api.github.com/users/leonardpauli/events{/privacy}","received_events_url":"https://api.github.com/users/leonardpauli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-28T03:41:32Z","updated_at":"2018-07-08T21:14:43Z","closed_at":null,"author_association":"NONE","body":"Not exactly sure what I did, but probably one of:\r\n```\r\ngun.get('testing').put({pointers: null})\r\ngun.get(id).put(null)\r\ngun.get(id).off()\r\ngun.get(id).get(id2).off()\r\ngun.get(id).map(v=> v.off())\r\ngun.get(id).map().val(v=> v.off())\r\ngun.get(id).map().val((v, k)=> gun.get(id).get(k).off())\r\nconst item = gun.get(id); item.map().val((v, k)=> item.get(k).off())\r\n\r\ngun.get('name').put({key: 'value'});\r\ngun.get('name').val(console.log)\r\ngun.get('name').off()\r\ngun.get('name').val(console.log)\r\n```\r\n\r\n...when trying to figure out how to remove data.\r\n\r\n```\r\nnode_modules/levelup/lib/levelup.js:145\r\n    throw new ReadError('get() requires a key argument')\r\n    ^\r\nReadError: get() requires a key argument\r\n    at LevelUP.get (/node_modules/levelup/lib/levelup.js:145:11)\r\n    at Adapter.read (/node_modules/gun-level/dist/Adapter/index.js:114:20)\r\n    at Object.next (/node_modules/gun-level/dist/index.js:32:14)\r\n    at Object.onto [as on] (/node_modules/gun/gun.js:203:19)\r\n    at Function.Gun.on.get (/node_modules/gun/gun.js:793:35)\r\n    at Object.root [as next] (/node_modules/gun/gun.js:697:14)\r\n    at Object.next (/node_modules/gun/nts.js:17:20)\r\n    at Object.next (/node_modules/gun/lib/bye.js:11:45)\r\n    at Object.onto [as on] (/node_modules/gun/gun.js:203:19)\r\n    at receive (/node_modules/gun/lib/ws.js:84:7)\r\nerror Command failed with exit code 1.\r\n```\r\n\r\n\r\nI suspect context.get['#'] (\"key\") becomes null/undefined somehow which breaks it all, even after restart. Adding `if (!key) return _this.afterRead(context, null) // possibly warn? or is this correct?` at line 112 in /dist/Adapter/index.js should do.\r\n\r\n...or just make it use the radix storage thing? :)"},"comment":{"url":"https://api.github.com/repos/gundb/gun-level/issues/comments/403317726","html_url":"https://github.com/gundb/gun-level/issues/48#issuecomment-403317726","issue_url":"https://api.github.com/repos/gundb/gun-level/issues/48","id":403317726,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzMxNzcyNg==","user":{"login":"509dave16","id":2925882,"node_id":"MDQ6VXNlcjI5MjU4ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/2925882?v=4","gravatar_id":"","url":"https://api.github.com/users/509dave16","html_url":"https://github.com/509dave16","followers_url":"https://api.github.com/users/509dave16/followers","following_url":"https://api.github.com/users/509dave16/following{/other_user}","gists_url":"https://api.github.com/users/509dave16/gists{/gist_id}","starred_url":"https://api.github.com/users/509dave16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/509dave16/subscriptions","organizations_url":"https://api.github.com/users/509dave16/orgs","repos_url":"https://api.github.com/users/509dave16/repos","events_url":"https://api.github.com/users/509dave16/events{/privacy}","received_events_url":"https://api.github.com/users/509dave16/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T21:14:43Z","updated_at":"2018-07-08T21:14:43Z","author_association":"CONTRIBUTOR","body":"There are a bunch of sync and performance concerns with our current api for the forms product. Hoping Gun could be an alternative for us. Will also be doing For client work-a contact management app as well as a similar forms app for a heater company as a PWA."}}
{"actor":{"display_login":"509dave16"}}