{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/3276","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/3276/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/3276/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/3276/events","html_url":"https://github.com/Automattic/mongoose/issues/3276","id":101315368,"number":3276,"title":"Unable to save documents","user":{"login":"ceeser","id":1509497,"avatar_url":"https://avatars.githubusercontent.com/u/1509497?v=3","gravatar_id":"","url":"https://api.github.com/users/ceeser","html_url":"https://github.com/ceeser","followers_url":"https://api.github.com/users/ceeser/followers","following_url":"https://api.github.com/users/ceeser/following{/other_user}","gists_url":"https://api.github.com/users/ceeser/gists{/gist_id}","starred_url":"https://api.github.com/users/ceeser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceeser/subscriptions","organizations_url":"https://api.github.com/users/ceeser/orgs","repos_url":"https://api.github.com/users/ceeser/repos","events_url":"https://api.github.com/users/ceeser/events{/privacy}","received_events_url":"https://api.github.com/users/ceeser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-17T01:03:46Z","updated_at":"2015-08-24T17:27:20Z","closed_at":null,"body":"Issue seen in 4.1.3 and 4.1.2. Confirmed that it isn't a problem in 4.1.0.\r\n\r\nWhen calling the save method on a new model, the following error is returned:\r\n\r\n439770823366 - error:  TypeError: Cannot assign to read only property 'checkKeys' of true\r\n    at Collection.insertMany (/var/app/current/node_modules/mongoose/node_modules/mongodb/lib/collection.js:427:23)\r\n    at Collection.insert (/var/app/current/node_modules/mongoose/node_modules/mongodb/lib/collection.js:668:15)\r\n    at NativeCollection.(anonymous function) [as insert] (/var/app/current/node_modules/mongoose/lib/drivers/node-mongodb-native/colle$    at /var/app/current/node_modules/mongoose/lib/model.js:116:24\r\n    at new Promise.ES6 (/var/app/current/node_modules/mongoose/lib/promise.js:45:5)\r\n    at model.$__handleSave (/var/app/current/node_modules/mongoose/lib/model.js:102:12)\r\n    at model.Model.save (/var/app/current/node_modules/mongoose/lib/model.js:224:16)\r\n    at model._done (/var/app/current/node_modules/mongoose/node_modules/hooks-fixed/hooks.js:101:24)\r\n    at _next (/var/app/current/node_modules/mongoose/node_modules/hooks-fixed/hooks.js:64:28)\r\n    at fnWrapper (/var/app/current/node_modules/mongoose/node_modules/hooks-fixed/hooks.js:186:18)\r\n    at model.Object.defineProperty.value.fn (/var/app/current/node_modules/mongoose/lib/schema.js:213:9)\r\n    at _next (/var/app/current/node_modules/mongoose/node_modules/hooks-fixed/hooks.js:62:30)\r\n    at fnWrapper (/var/app/current/node_modules/mongoose/node_modules/hooks-fixed/hooks.js:186:18)\r\n    at newTickHandler (/var/app/current/node_modules/mongoose/node_modules/mpromise/lib/promise.js:229:18)\r\n    at process._tickDomainCallback (node.js:381:11)"},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/134308080","html_url":"https://github.com/Automattic/mongoose/issues/3276#issuecomment-134308080","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/3276","id":134308080,"user":{"login":"vkarpov15","id":1620265,"avatar_url":"https://avatars.githubusercontent.com/u/1620265?v=3","gravatar_id":"","url":"https://api.github.com/users/vkarpov15","html_url":"https://github.com/vkarpov15","followers_url":"https://api.github.com/users/vkarpov15/followers","following_url":"https://api.github.com/users/vkarpov15/following{/other_user}","gists_url":"https://api.github.com/users/vkarpov15/gists{/gist_id}","starred_url":"https://api.github.com/users/vkarpov15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkarpov15/subscriptions","organizations_url":"https://api.github.com/users/vkarpov15/orgs","repos_url":"https://api.github.com/users/vkarpov15/repos","events_url":"https://api.github.com/users/vkarpov15/events{/privacy}","received_events_url":"https://api.github.com/users/vkarpov15/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T17:27:20Z","updated_at":"2015-08-24T17:27:20Z","body":"Please provide more context, hard to tell what's going on without some code samples."}}