{"action":"created","issue":{"url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/67","labels_url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/67/comments","events_url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/67/events","html_url":"https://github.com/mizzao/meteor-user-status/issues/67","id":88927677,"number":67,"title":"cannot install meteor-user-status","user":{"login":"wakingdreamer","id":4961532,"avatar_url":"https://avatars.githubusercontent.com/u/4961532?v=3","gravatar_id":"","url":"https://api.github.com/users/wakingdreamer","html_url":"https://github.com/wakingdreamer","followers_url":"https://api.github.com/users/wakingdreamer/followers","following_url":"https://api.github.com/users/wakingdreamer/following{/other_user}","gists_url":"https://api.github.com/users/wakingdreamer/gists{/gist_id}","starred_url":"https://api.github.com/users/wakingdreamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wakingdreamer/subscriptions","organizations_url":"https://api.github.com/users/wakingdreamer/orgs","repos_url":"https://api.github.com/users/wakingdreamer/repos","events_url":"https://api.github.com/users/wakingdreamer/events{/privacy}","received_events_url":"https://api.github.com/users/wakingdreamer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-17T06:34:06Z","updated_at":"2016-01-04T06:39:56Z","closed_at":"2015-06-17T06:41:04Z","body":"when i run  meteor add mizzao:user-status to install it ,i got the errors like this:   \r\n\r\n /home/fitark/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245\r\nW20150617-14:32:22.151(8)? (STDERR)                                             throw(ex);\r\nW20150617-14:32:22.151(8)? (STDERR)                                                   ^\r\nW20150617-14:32:22.152(8)? (STDERR) Error: status.idle is not allowed by the schema\r\nW20150617-14:32:22.152(8)? (STDERR)   at getErrorObject (/home/fitark/projects/OasisPD1/OasisPD/.meteor/local/build/programs/server/packages/aldeed_collection2.js:393:15)\r\nW20150617-14:32:22.153(8)? (STDERR)   at [object Object].doValidate (/home/fitark/projects/OasisPD1/OasisPD/.meteor/local/build/programs/server/packages/aldeed_collection2.js:376:13)\r\nW20150617-14:32:22.153(8)? (STDERR)   at [object Object].Mongo.Collection.(anonymous function) [as update] (/home/fitark/projects/OasisPD1/OasisPD/.meteor/local/build/programs/server/packages/aldeed_collection2.js:178:31)\r\nW20150617-14:32:22.153(8)? (STDERR)   at onStartup (/home/fitark/projects/OasisPD1/OasisPD/.meteor/local/build/programs/server/packages/mizzao_user-status.js:157:23)\r\nW20150617-14:32:22.154(8)? (STDERR)   at /home/fitark/projects/OasisPD1/OasisPD/.meteor/local/build/programs/server/boot.js:229:5\r\n"},"comment":{"url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/comments/168595857","html_url":"https://github.com/mizzao/meteor-user-status/issues/67#issuecomment-168595857","issue_url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/67","id":168595857,"user":{"login":"aramk","id":574282,"avatar_url":"https://avatars.githubusercontent.com/u/574282?v=3","gravatar_id":"","url":"https://api.github.com/users/aramk","html_url":"https://github.com/aramk","followers_url":"https://api.github.com/users/aramk/followers","following_url":"https://api.github.com/users/aramk/following{/other_user}","gists_url":"https://api.github.com/users/aramk/gists{/gist_id}","starred_url":"https://api.github.com/users/aramk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aramk/subscriptions","organizations_url":"https://api.github.com/users/aramk/orgs","repos_url":"https://api.github.com/users/aramk/repos","events_url":"https://api.github.com/users/aramk/events{/privacy}","received_events_url":"https://api.github.com/users/aramk/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T06:39:55Z","updated_at":"2016-01-04T06:39:55Z","body":"It could be a race condition when setting up the schemas? You could try\nwrapping the definition in a Meteor.startup()? Also use a var userSchema to\navoid the variable leaking out of scope.\n\nOn Mon, Jan 4, 2016 at 4:08 PM lpatmo <notifications@github.com> wrote:\n\n> @aramk <https://github.com/aramk> Interesting -- thanks for clarifying. I\n> added:\n>\n> userSchema = new SimpleSchema({\n>   status: {\n>     type: Object,\n>     blackbox: true\n>   }\n> });\n> Users.attachSchema(userSchema);\n>\n> to my custom/lib/custom_fields.js, and double-checked that\n> custom-fields.js was included here:\n>\n>   api.addFiles([\n>     'lib/custom_fields.js',\n>     'lib/template_modules.js',\n>     'lib/callbacks.js'\n>   ], ['client', 'server']);\n>\n> Error in console:\n>\n> I20160103-21:04:55.540(-8)? Exception while invoking method 'ATCreateUserServer' { stack: 'Error: status is required\\n    at getErrorObject (packages/aldeed_collection2/packages/aldeed_collection2.js:425:1)\\n    at [object Object].doValidate (packages/aldeed_collection2/packages/aldeed_collection2.js:408:1)\\n    at [object Object].Mongo.Collection.(anonymous function) [as insert] (packages/aldeed_collection2/packages/aldeed_collection2.js:177:1)\\n    at AccountsServer.Ap.insertUserDoc (accounts_server.js:1248:25)\\n    at createUser (password_server.js:980:25)\\n    at AccountsServer.Accounts.createUser (password_server.js:1049:10)\\n    at [object Object].Meteor.methods.ATCreateUserServer (packages/useraccounts_core/lib/server_methods.js:103:1)\\n    at [object Object].methodMap.(anonymous function) (packages/meteorhacks_kadira/lib/hijack/wrap_session.js:164:1)\\n    at maybeAuditArgumentChecks (livedata_server.js:1698:12)\\n    at livedata_server.js:708:19',\n> I20160103-21:04:55.540(-8)?   source: 'method' }\n> I20160103-21:04:55.540(-8)? Sanitized and reported to the client as: status is required [400]\n> I20160103-21:04:55.540(-8)?\n>\n> (with the same error as screenshot above when I try registering a new\n> user.)\n>\n> Perhaps I'm missing something. :/\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/mizzao/meteor-user-status/issues/67#issuecomment-168582281>\n> .\n>\n"}}