{"action":"created","issue":{"url":"https://api.github.com/repos/poetapp/node/issues/813","repository_url":"https://api.github.com/repos/poetapp/node","labels_url":"https://api.github.com/repos/poetapp/node/issues/813/labels{/name}","comments_url":"https://api.github.com/repos/poetapp/node/issues/813/comments","events_url":"https://api.github.com/repos/poetapp/node/issues/813/events","html_url":"https://github.com/poetapp/node/issues/813","id":384421949,"node_id":"MDU6SXNzdWUzODQ0MjE5NDk=","number":813,"title":"Duplicate Key Error in BlockchainWriter onCreateBatchSuccess","user":{"login":"lautarodragan","id":2279687,"node_id":"MDQ6VXNlcjIyNzk2ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/2279687?v=4","gravatar_id":"","url":"https://api.github.com/users/lautarodragan","html_url":"https://github.com/lautarodragan","followers_url":"https://api.github.com/users/lautarodragan/followers","following_url":"https://api.github.com/users/lautarodragan/following{/other_user}","gists_url":"https://api.github.com/users/lautarodragan/gists{/gist_id}","starred_url":"https://api.github.com/users/lautarodragan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lautarodragan/subscriptions","organizations_url":"https://api.github.com/users/lautarodragan/orgs","repos_url":"https://api.github.com/users/lautarodragan/repos","events_url":"https://api.github.com/users/lautarodragan/events{/privacy}","received_events_url":"https://api.github.com/users/lautarodragan/received_events","type":"User","site_admin":false},"labels":[{"id":729547218,"node_id":"MDU6TGFiZWw3Mjk1NDcyMTg=","url":"https://api.github.com/repos/poetapp/node/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[{"login":"krobi64","id":159039,"node_id":"MDQ6VXNlcjE1OTAzOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/159039?v=4","gravatar_id":"","url":"https://api.github.com/users/krobi64","html_url":"https://github.com/krobi64","followers_url":"https://api.github.com/users/krobi64/followers","following_url":"https://api.github.com/users/krobi64/following{/other_user}","gists_url":"https://api.github.com/users/krobi64/gists{/gist_id}","starred_url":"https://api.github.com/users/krobi64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krobi64/subscriptions","organizations_url":"https://api.github.com/users/krobi64/orgs","repos_url":"https://api.github.com/users/krobi64/repos","events_url":"https://api.github.com/users/krobi64/events{/privacy}","received_events_url":"https://api.github.com/users/krobi64/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/poetapp/node/milestones/8","html_url":"https://github.com/poetapp/node/milestone/8","labels_url":"https://api.github.com/repos/poetapp/node/milestones/8/labels","id":3803320,"node_id":"MDk6TWlsZXN0b25lMzgwMzMyMA==","number":8,"title":"PML1","description":null,"creator":{"login":"geoffturk","id":32190662,"node_id":"MDQ6VXNlcjMyMTkwNjYy","avatar_url":"https://avatars3.githubusercontent.com/u/32190662?v=4","gravatar_id":"","url":"https://api.github.com/users/geoffturk","html_url":"https://github.com/geoffturk","followers_url":"https://api.github.com/users/geoffturk/followers","following_url":"https://api.github.com/users/geoffturk/following{/other_user}","gists_url":"https://api.github.com/users/geoffturk/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffturk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffturk/subscriptions","organizations_url":"https://api.github.com/users/geoffturk/orgs","repos_url":"https://api.github.com/users/geoffturk/repos","events_url":"https://api.github.com/users/geoffturk/events{/privacy}","received_events_url":"https://api.github.com/users/geoffturk/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":7,"state":"open","created_at":"2018-11-07T13:21:13Z","updated_at":"2018-11-29T19:10:25Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-11-26T16:55:59Z","updated_at":"2018-11-30T09:40:44Z","closed_at":null,"author_association":"MEMBER","body":"I'm finding this a lot in the QA environment logs.\r\n\r\n```js\r\n{  \r\n   \"msg\":\"Anchor request failure\",\r\n   \"module\":\"BlockchainWriter\",\r\n   \"file\":\"Router\",\r\n   \"method\":\"onCreateBatchSuccess\",\r\n   \"error\":{  \r\n      \"driver\":true,\r\n      \"name\":\"MongoError\",\r\n      \"index\":0,\r\n      \"code\":11000,\r\n      \"errmsg\":\"E11000 duplicate key error collection: regtest.blockchainWriter index: ipfsDirectoryHash_1 dup key: { : \\\"QmbuvwFrxRu54uLkF12Ch3LiBZyA8vRTiQ2rfPenM3jxX7\\\" }\",\r\n      \"stack\":[  \r\n         \"MongoError: E11000 duplicate key error collection: regtest.blockchainWriter index: ipfsDirectoryHash_1 dup key: { : \\\"QmbuvwFrxRu54uLkF12Ch3LiBZyA8vRTiQ2rfPenM3jxX7\\\" }\",\r\n         \"    at Function.create (/usr/src/app/node_modules/mongodb-core/lib/error.js:43:12)\",\r\n         \"    at toError (/usr/src/app/node_modules/mongodb/lib/utils.js:149:22)\",\r\n         \"    at coll.s.topology.insert (/usr/src/app/node_modules/mongodb/lib/operations/collection_ops.js:844:39)\",\r\n         \"    at handler (/usr/src/app/node_modules/mongodb-core/lib/topologies/replset.js:1195:22)\",\r\n         \"    at /usr/src/app/node_modules/mongodb-core/lib/connection/pool.js:532:18\",\r\n         \"    at process._tickCallback (internal/process/next_tick.js:61:11)\"\r\n      ],\r\n      \"message\":\"E11000 duplicate key error collection: regtest.blockchainWriter index: ipfsDirectoryHash_1 dup key: { : \\\"QmbuvwFrxRu54uLkF12Ch3LiBZyA8vRTiQ2rfPenM3jxX7\\\" }\",\r\n      \"type\":\"MongoError\"\r\n   },\r\n   \"ipfsDirectoryHash\":\"QmbuvwFrxRu54uLkF12Ch3LiBZyA8vRTiQ2rfPenM3jxX7\",\r\n   \"v\":1\r\n}\r\n```\r\n\r\nI think there is one for each POST request."},"comment":{"url":"https://api.github.com/repos/poetapp/node/issues/comments/443147613","html_url":"https://github.com/poetapp/node/issues/813#issuecomment-443147613","issue_url":"https://api.github.com/repos/poetapp/node/issues/813","id":443147613,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzE0NzYxMw==","user":{"login":"geoffturk","id":32190662,"node_id":"MDQ6VXNlcjMyMTkwNjYy","avatar_url":"https://avatars3.githubusercontent.com/u/32190662?v=4","gravatar_id":"","url":"https://api.github.com/users/geoffturk","html_url":"https://github.com/geoffturk","followers_url":"https://api.github.com/users/geoffturk/followers","following_url":"https://api.github.com/users/geoffturk/following{/other_user}","gists_url":"https://api.github.com/users/geoffturk/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffturk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffturk/subscriptions","organizations_url":"https://api.github.com/users/geoffturk/orgs","repos_url":"https://api.github.com/users/geoffturk/repos","events_url":"https://api.github.com/users/geoffturk/events{/privacy}","received_events_url":"https://api.github.com/users/geoffturk/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T09:40:44Z","updated_at":"2018-11-30T09:40:44Z","author_association":"MEMBER","body":"Reassigning to @krobi64."}}
{"actor":{"display_login":"geoffturk"}}