[Bug]: TooManyRequestsException in ConnectivityManager.registerNetworkCallback Causes App Crash

Open
#1,714 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile

Research direction

Start by locating the app path that calls ConnectivityManager.registerNetworkCallback and reproduce the TooManyRequestsException described in the issue. Review the linked Stack Overflow thread for context; done means the app no longer crashes from excessive network callback registration, with cleanup or throttling behavior verified.

Written by the indexing model from the issue text.

Description

bug
Is there an existing issue for this?
  • I have searched the existing issues
Is there a StackOverflow question about this issue?
  • I have searched StackOverflow
What happened?

The app crashes with the following exception when using ConnectivityManager.registerNetworkCallback. This occurs because multiple network callbacks are registered without proper cleanup or throttling, leading to a TooManyRequestsException.

This issue is commonly discussed on platforms like Stack Overflow. A related thread that might provide helpful insights is [Compose TooManyRequestsException when there is not more than one callback registered].https://stackoverflow.com/questions/77493004/compose-toomanyrequestsexception-when-this-is-not-more-than-1-callback-registere

Relevant logcat output

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
Kotlin
Stars
22.1k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/nowinandroid

All issues in android/nowinandroid

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.