{"action":"created","issue":{"url":"https://api.github.com/repos/hideo55/node-unqlite/issues/4","labels_url":"https://api.github.com/repos/hideo55/node-unqlite/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/hideo55/node-unqlite/issues/4/comments","events_url":"https://api.github.com/repos/hideo55/node-unqlite/issues/4/events","html_url":"https://github.com/hideo55/node-unqlite/issues/4","id":75311874,"number":4,"title":"error on write","user":{"login":"mark-hahn","id":811455,"avatar_url":"https://avatars.githubusercontent.com/u/811455?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-hahn","html_url":"https://github.com/mark-hahn","followers_url":"https://api.github.com/users/mark-hahn/followers","following_url":"https://api.github.com/users/mark-hahn/following{/other_user}","gists_url":"https://api.github.com/users/mark-hahn/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-hahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-hahn/subscriptions","organizations_url":"https://api.github.com/users/mark-hahn/orgs","repos_url":"https://api.github.com/users/mark-hahn/repos","events_url":"https://api.github.com/users/mark-hahn/events{/privacy}","received_events_url":"https://api.github.com/users/mark-hahn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-11T18:21:10Z","updated_at":"2015-05-25T21:30:16Z","closed_at":"2015-05-25T21:30:16Z","body":"I'm trying a basic write/read.  I get an error on the write but then strangely the read works.\r\n\r\n```\r\ndb.open (err) ->\r\n  if err then throw err \r\n  db.store 'key', 'value', (err, key, value) ->\r\n    log {err, key, value}\r\n  db.fetch 'key', (error, key, value) ->\r\n    log {error, key, value}\r\n```\r\n\r\nThe output ...\r\n\r\n```\r\n{ error: [Error: Failed to fetch : -6], key: undefined, value: undefined }\r\n{ err: null, key: 'key', value: 'value' }\r\n```\r\n\r\nAfterwards the db was empty and there was binary in the journal.\r\n"},"comment":{"url":"https://api.github.com/repos/hideo55/node-unqlite/issues/comments/105320694","html_url":"https://github.com/hideo55/node-unqlite/issues/4#issuecomment-105320694","issue_url":"https://api.github.com/repos/hideo55/node-unqlite/issues/4","id":105320694,"user":{"login":"mark-hahn","id":811455,"avatar_url":"https://avatars.githubusercontent.com/u/811455?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-hahn","html_url":"https://github.com/mark-hahn","followers_url":"https://api.github.com/users/mark-hahn/followers","following_url":"https://api.github.com/users/mark-hahn/following{/other_user}","gists_url":"https://api.github.com/users/mark-hahn/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-hahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-hahn/subscriptions","organizations_url":"https://api.github.com/users/mark-hahn/orgs","repos_url":"https://api.github.com/users/mark-hahn/repos","events_url":"https://api.github.com/users/mark-hahn/events{/privacy}","received_events_url":"https://api.github.com/users/mark-hahn/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T21:30:16Z","updated_at":"2015-05-25T21:30:16Z","body":"Thanks.  I've been using node for years.  My brain was awol."}}