{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/guide/issues/227","repository_url":"https://api.github.com/repos/meteor/guide","labels_url":"https://api.github.com/repos/meteor/guide/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/meteor/guide/issues/227/comments","events_url":"https://api.github.com/repos/meteor/guide/issues/227/events","html_url":"https://github.com/meteor/guide/issues/227","id":132225807,"number":227,"title":"Publications and Data Loading validation error catching","user":{"login":"rdagger","id":106355,"avatar_url":"https://avatars.githubusercontent.com/u/106355?v=3","gravatar_id":"","url":"https://api.github.com/users/rdagger","html_url":"https://github.com/rdagger","followers_url":"https://api.github.com/users/rdagger/followers","following_url":"https://api.github.com/users/rdagger/following{/other_user}","gists_url":"https://api.github.com/users/rdagger/gists{/gist_id}","starred_url":"https://api.github.com/users/rdagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdagger/subscriptions","organizations_url":"https://api.github.com/users/rdagger/orgs","repos_url":"https://api.github.com/users/rdagger/repos","events_url":"https://api.github.com/users/rdagger/events{/privacy}","received_events_url":"https://api.github.com/users/rdagger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/guide/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-08T18:45:51Z","updated_at":"2016-06-06T21:17:52Z","closed_at":null,"body":"[Defining a publication](http://guide.meteor.com/data-loading.html#publications) recommends data validation using SimpleSchema instead of Check.  The SimpleSchema validate method will cause the publish method to break if the parameters are invalid as designed but it doesn't throw an error.  Check would throw an error to the console.\r\n\r\nIs there a way to capture validation errors in publish methods when using SimpleSchema"},"comment":{"url":"https://api.github.com/repos/meteor/guide/issues/comments/224091388","html_url":"https://github.com/meteor/guide/issues/227#issuecomment-224091388","issue_url":"https://api.github.com/repos/meteor/guide/issues/227","id":224091388,"user":{"login":"abecks","id":2068353,"avatar_url":"https://avatars.githubusercontent.com/u/2068353?v=3","gravatar_id":"","url":"https://api.github.com/users/abecks","html_url":"https://github.com/abecks","followers_url":"https://api.github.com/users/abecks/followers","following_url":"https://api.github.com/users/abecks/following{/other_user}","gists_url":"https://api.github.com/users/abecks/gists{/gist_id}","starred_url":"https://api.github.com/users/abecks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abecks/subscriptions","organizations_url":"https://api.github.com/users/abecks/orgs","repos_url":"https://api.github.com/users/abecks/repos","events_url":"https://api.github.com/users/abecks/events{/privacy}","received_events_url":"https://api.github.com/users/abecks/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T21:17:52Z","updated_at":"2016-06-06T21:17:52Z","body":"I was recently tripped on this issue aswell. My subscriptions stopped working and I had to track this down manually. \r\n\r\nPerhaps updating the example subscribe to include an onStop example would help:\r\n\r\n```\r\nMeteor.subscribe('todos.inList', list._id);\r\n```\r\n\r\nto:\r\n\r\n```\r\nMeteor.subscribe('todos.inList', list._id, {\r\n   onStop: ...\r\n});\r\n```\r\n\r\nOn that note, what is the best way to update the UI reactively if a subscription fails due to an error? Currently, my UI listens for subscriptionHandler.ready() to be true. An error does not set ``ready`` to true, so my loaders are stuck indefinitely. I'm assuming I need to wire up my own reactive variable based on ``ready`` AND not having errors returned from the subscribe call. A best practice pattern here would be greatly appreciated!"}}
{"actor":{"display_login":"abecks"}}