bug in network
freehussain opened this issue · comments
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()
api level for this crash is above 21?
and
are you start downloading on button click?
yes, it's 23 and on button click
will look into it
i am unable to reproduce this issue.
please if possible add details that how it will be reproduced.
closing due to no activity