I am seeing SendBird Chat SDK unable to retain connection as well as Glide (Image Loading) library unable to load images in the chat screen. I did the integration of SendBird Chat SDK as per provided documentation and sample code. I had a cross-verified internet connection a few times and it’s working fine at all.
Please checkout logs shown to me in logcat from SendBird Chat SDK:
2021-12-09 18:48:58.898 26102-26352/com.me.myapp E/PINGER: [18:48:58.896 Connection$Pinger:stop():448] Pinger stop timer is null
2021-12-09 18:48:58.907 26102-26352/com.me.myapp E/Sendbird:PINGER: [18:48:58.901 Connection$Pinger:stop():449] Pinger stop timer is null
2021-12-09 18:48:58.916 26102-26521/com.me.myapp W/SendBird: [18:48:58.915 Connection$1:onFailure():194] onFailed instance : com.sendbird.android.Connection@4f32e67
2021-12-09 18:48:58.920 26102-26521/com.me.myapp W/Sendbird: [18:48:58.917 Connection$1:onFailure():195] onFailed instance : com.sendbird.android.Connection@4f32e67
2021-12-09 18:48:58.921 26102-26521/com.me.myapp W/SendBird: [18:48:58.921 Connection$1:onFailure():200] onFailed handler : com.sendbird.android.SocketManager@77c6708
2021-12-09 18:48:58.922 26102-26521/com.me.myapp W/Sendbird: [18:48:58.922 Connection$1:onFailure():201] onFailed handler : com.sendbird.android.SocketManager@77c6708
2021-12-09 18:48:58.923 26102-26521/com.me.myapp W/SendBird: [18:48:58.923 SocketManager:onError():763] >> onError : Socket is closed, reconnecting : true, explicitDisconnect : true
2021-12-09 18:49:03.777 26102-26102/com.me.myapp W/Glide: Load failed for https://file-us-3.sendbird.com/eda9af4c31464fbbac714f1448ace174.jpeg with size [723x478]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
2021-12-09 18:49:03.787 26102-26326/com.me.myapp W/com.me.myap: Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
2021-12-09 18:49:03.790 26102-26326/com.me.myapp W/com.me.myap: Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
2021-12-09 18:49:03.790 26102-26326/com.me.myapp W/com.me.myap: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
2021-12-09 18:49:12.989 26102-26354/com.me.myapp W/SendBird: [18:49:12.987 JobTask$callable$1:call():11] SendBirdException{code=800120, message=timeout}
at com.sendbird.android.APIRequest.request(APIRequest.java:154)
at com.sendbird.android.APIRequest.GET(APIRequest.java:113)
at com.sendbird.android.APIClient$2.call(APIClient.java:3301)
at com.sendbird.android.APIClient$2.call(APIClient.java:3298)
at com.sendbird.android.JobTask$callable$1.call(JobTask.kt:9)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
2021-12-09 18:49:13.254 26102-26102/com.me.myapp W/Glide: Load failed for https://file-us-3.sendbird.com/5bca3b42754149cebcc06820d49615cd.jpeg with size [723x478]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
Let me know if you need anything else from my end. Looking forward to quick help from your side. Thanks.