tanoDxyz / GDownload

Light Weight, Fast 🚀 , Easy to Use, Reliable Download client for android.
Apache License 2.0
39 stars 2 forks source link

bug in network #12

Closed freehussain closed 3 months ago

freehussain commented 1 year ago

Exception android.net.ConnectivityManager$TooManyRequestsException: at android.net.ConnectivityManager.convertServiceException (ConnectivityManager.java:4034) at android.net.ConnectivityManager.sendRequestForNetwork (ConnectivityManager.java:4226) at android.net.ConnectivityManager.sendRequestForNetwork (ConnectivityManager.java:4233) at android.net.ConnectivityManager.registerNetworkCallback (ConnectivityManager.java:4615) at android.net.ConnectivityManager.registerNetworkCallback (ConnectivityManager.java:4585) at com.tanodxyz.gdownload.NetworkInfoProvider. (NetworkInfoProvider.kt:51) at android.view.View.performClick (View.java:7892) at android.view.View.performClickInternal (View.java:7869) at android.view.View.-$$Nest$mperformClickInternal at android.view.View$PerformClick.run (View.java:30880) at android.os.Handler.handleCallback (Handler.java:942) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:226) at android.os.Looper.loop (Looper.java:313) at android.app.ActivityThread.main (ActivityThread.java:8757) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)

i see this on firebase crash analytics , can you please how to avoid it.

my code is:

DownloadManager.Builder(App.INCTANCE) .setNetworkInfoProvider(NetworkInfoProvider(App.INCTANCE)) .setDataReadWriteWorkersManager(DataReadWriteWorkersManagerImpl()) .setCallbacksHandler(runCallbacksOnMainThread = true) .setStorageHelper(DefaultFileStorageHelper(App.INCTANCE)) .setConnectionManager(ConnectionManagerImpl(URLConnectionFactory(), executor)) .setScheduledBackgroundExecutor(executor) .build()

tanoDxyz commented 1 year ago

api level for this crash is above 21? and are you start downloading on button click?

freehussain commented 1 year ago

yes, it's 23 and on button click

tanoDxyz commented 1 year ago

will look into it

tanoDxyz commented 1 year ago

i am unable to reproduce this issue. please if possible add details that how it will be reproduced.

tanoDxyz commented 1 year ago

closing due to no activity

tanoDxyz commented 4 months ago

Reported by someone again!

tanoDxyz commented 3 months ago

released v1.2