{"action":"created","issue":{"url":"https://api.github.com/repos/intercom/intercom-android/issues/106","labels_url":"https://api.github.com/repos/intercom/intercom-android/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/intercom/intercom-android/issues/106/comments","events_url":"https://api.github.com/repos/intercom/intercom-android/issues/106/events","html_url":"https://github.com/intercom/intercom-android/issues/106","id":94301669,"number":106,"title":"Illegal argument exception in unread conversations api call, missing callback","user":{"login":"gennadiiivanov","id":1785007,"avatar_url":"https://avatars.githubusercontent.com/u/1785007?v=3","gravatar_id":"","url":"https://api.github.com/users/gennadiiivanov","html_url":"https://github.com/gennadiiivanov","followers_url":"https://api.github.com/users/gennadiiivanov/followers","following_url":"https://api.github.com/users/gennadiiivanov/following{/other_user}","gists_url":"https://api.github.com/users/gennadiiivanov/gists{/gist_id}","starred_url":"https://api.github.com/users/gennadiiivanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gennadiiivanov/subscriptions","organizations_url":"https://api.github.com/users/gennadiiivanov/orgs","repos_url":"https://api.github.com/users/gennadiiivanov/repos","events_url":"https://api.github.com/users/gennadiiivanov/events{/privacy}","received_events_url":"https://api.github.com/users/gennadiiivanov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-10T12:55:13Z","updated_at":"2015-07-20T13:42:09Z","closed_at":null,"body":"```\r\njava.lang.IllegalArgumentException: IntercomApiInterface.getUnreadConversations: Must have either a return type or Callback as last argument.\r\n       at retrofit.RestMethodInfo.methodError(RestMethodInfo.java:107)\r\n       at retrofit.RestMethodInfo.parseResponseType(RestMethodInfo.java:270)\r\n       at retrofit.RestMethodInfo.<init>(RestMethodInfo.java:97)\r\n       at retrofit.RestAdapter.getMethodInfo(RestAdapter.java:213)\r\n       at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:236)\r\n       at java.lang.reflect.Proxy.invoke(Proxy.java:397)\r\n       at $Proxy0.getUnreadConversations()\r\n       at io.intercom.android.sdk.api.Api.getUnreadConversations(Api.java:375)\r\n       at io.intercom.android.sdk.api.PollingManager$1.run(PollingManager.java:30)\r\n       at android.os.Handler.handleCallback(Handler.java:739)\r\n       at android.os.Handler.dispatchMessage(Handler.java:95)\r\n       at android.os.Looper.loop(Looper.java:145)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5834)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:372)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)\r\n```\r\n\r\nHappened in 1.1.1 version."},"comment":{"url":"https://api.github.com/repos/intercom/intercom-android/issues/comments/122888423","html_url":"https://github.com/intercom/intercom-android/issues/106#issuecomment-122888423","issue_url":"https://api.github.com/repos/intercom/intercom-android/issues/106","id":122888423,"user":{"login":"gennadiiivanov","id":1785007,"avatar_url":"https://avatars.githubusercontent.com/u/1785007?v=3","gravatar_id":"","url":"https://api.github.com/users/gennadiiivanov","html_url":"https://github.com/gennadiiivanov","followers_url":"https://api.github.com/users/gennadiiivanov/followers","following_url":"https://api.github.com/users/gennadiiivanov/following{/other_user}","gists_url":"https://api.github.com/users/gennadiiivanov/gists{/gist_id}","starred_url":"https://api.github.com/users/gennadiiivanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gennadiiivanov/subscriptions","organizations_url":"https://api.github.com/users/gennadiiivanov/orgs","repos_url":"https://api.github.com/users/gennadiiivanov/repos","events_url":"https://api.github.com/users/gennadiiivanov/events{/privacy}","received_events_url":"https://api.github.com/users/gennadiiivanov/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T13:42:09Z","updated_at":"2015-07-20T13:42:09Z","body":"> @gennadiiivanov I've spent some time profiling the library on our Samsung S5. I haven't come across any memory leaks or situations where we're holding onto an unreasonable amount of memory over a long period of time etc. Have you found anything?\r\n\r\n@harkin we didn't have a time to work on this problem yet. Can you just put a simple try/catch into your code?\r\nIt is interesting that crash is happening only on Android 5. Maybe the library (retrofit) update will solve a problem?"}}