Very Slow CometChat Login

Hi
I am using CometChat.login method and getting the following error always:
In the callback, onError(CometChatException e), the value e.getMessage() is:

“failed to connect to apiclient-us.cometchat.io/3.136.223.47 (port 443) from /192.168.1.129 (port 50607) after 15000ms”

The complete log in the android studio is:
2020-02-19 13:17:42.037 5458-5458/? W/System.err: com.cometchat.pro.exceptions.CometChatException: failed to connect to apiclient-us.cometchat.io/3.136.223.47 (port 443) from /192.168.1.129 (port 50607) after 15000ms
2020-02-19 13:17:42.038 5458-5458/? W/System.err: at com.cometchat.pro.core.ApiConnection$2.onFailure(ApiConnection.java:1037)
2020-02-19 13:17:42.038 5458-5458/? W/System.err: at okhttp3.RealCall$AsyncCall.execute(RealCall.java:211)
2020-02-19 13:17:42.038 5458-5458/? W/System.err: at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
2020-02-19 13:17:42.038 5458-5458/? W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2020-02-19 13:17:42.038 5458-5458/? W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2020-02-19 13:17:42.038 5458-5458/? W/System.err: at java.lang.Thread.run(Thread.java:764)

P.S: My internet is working fine. I am able to browse HD videos on youtube on the same wifi.

This is really affecting my clients. Please resolve the issues quickly.

And this behavior is very unpredictable. Sometimes it works fine on the same internet but mostly it’s giving me the error.

We are also using the IOS SDK and observing the same issue there as well.

Thanks
Kamran

1 Like

Waiting for response.

Hello @kamran_iosite
This error only occurs when there is not internet connection available on the device. If you have an active internet connection on the device you should not face this error.
Thanks

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.