{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/271","repository_url":"https://api.github.com/repos/ReactiveX/RxAndroid","labels_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/271/comments","events_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/271/events","html_url":"https://github.com/ReactiveX/RxAndroid/issues/271","id":141184349,"number":271,"title":"I call observeOn(AndroidSchedulers.mainThread()) when there is no internet ,the app crash ,and the log just told me \"E/AndroidRuntime: FATAL EXCEPTION: main\".","user":{"login":"lovejjfg","id":10557477,"avatar_url":"https://avatars.githubusercontent.com/u/10557477?v=3","gravatar_id":"","url":"https://api.github.com/users/lovejjfg","html_url":"https://github.com/lovejjfg","followers_url":"https://api.github.com/users/lovejjfg/followers","following_url":"https://api.github.com/users/lovejjfg/following{/other_user}","gists_url":"https://api.github.com/users/lovejjfg/gists{/gist_id}","starred_url":"https://api.github.com/users/lovejjfg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovejjfg/subscriptions","organizations_url":"https://api.github.com/users/lovejjfg/orgs","repos_url":"https://api.github.com/users/lovejjfg/repos","events_url":"https://api.github.com/users/lovejjfg/events{/privacy}","received_events_url":"https://api.github.com/users/lovejjfg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-16T06:23:47Z","updated_at":"2016-03-16T09:29:11Z","closed_at":null,"body":" BaseDataManager.getDailyApiService().getLatestDailyStories()\r\n                    .subscribeOn(Schedulers.io())\r\n                    .observeOn(AndroidSchedulers.mainThread())\r\n                    .subscribe(new Action1<DailyStories>() {\r\n                        @Override\r\n                        public void call(DailyStories dailyStories) {\r\n                            mView.onLoadMore(dailyStories);\r\n                            mView.isLoading(false);\r\n                            isLoading = false;\r\n                        }\r\n                    });"},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/comments/197226305","html_url":"https://github.com/ReactiveX/RxAndroid/issues/271#issuecomment-197226305","issue_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/271","id":197226305,"user":{"login":"artem-zinnatullin","id":967132,"avatar_url":"https://avatars.githubusercontent.com/u/967132?v=3","gravatar_id":"","url":"https://api.github.com/users/artem-zinnatullin","html_url":"https://github.com/artem-zinnatullin","followers_url":"https://api.github.com/users/artem-zinnatullin/followers","following_url":"https://api.github.com/users/artem-zinnatullin/following{/other_user}","gists_url":"https://api.github.com/users/artem-zinnatullin/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-zinnatullin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-zinnatullin/subscriptions","organizations_url":"https://api.github.com/users/artem-zinnatullin/orgs","repos_url":"https://api.github.com/users/artem-zinnatullin/repos","events_url":"https://api.github.com/users/artem-zinnatullin/events{/privacy}","received_events_url":"https://api.github.com/users/artem-zinnatullin/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T09:29:11Z","updated_at":"2016-03-16T09:29:11Z","body":"You need to pass error handler as second parameter to `subscribe()` or pass `Observer/Subscriber` to it. \r\n\r\nIssue is not related to `observeOn()` and RxAndroid. It's about usage of RxJava in general. \r\n\r\nThink of it like a `try/catch`, if you won't add it to place where `RuntimeException` may occur — it'll crash the app. "}}