Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KlaviyoNetworkMonitor.isNetworkConnected #198

Open
2 of 4 tasks
kcjian opened this issue Nov 20, 2024 · 4 comments
Open
2 of 4 tasks

KlaviyoNetworkMonitor.isNetworkConnected #198

kcjian opened this issue Nov 20, 2024 · 4 comments
Labels
bug Something isn't working stale

Comments

@kcjian
Copy link

kcjian commented Nov 20, 2024

Checklist

  • I have read the contributing guidelines
  • I have determined whether this bug is also reproducible in a vanilla Android project
  • If possible, I've reproduced the issue using the master branch or latest release of this package.
  • This issue hasn't been addressed in an existing GitHub issue or pull request.

Description

Firebase report error

Expected behavior

Firebase do not report this error

Actual behavior

Fatal Exception: java.lang.NullPointerException
Attempt to read from field 'java.util.List android.net.connectivity.com.android.server.ConnectivityService$NetworkRequestInfo.mRequests' on a null object reference in method 'android.net.connectivity.com.android.server.connectivity.NetworkAgentInfo android.net.connectivity.com.android.server.ConnectivityService.getDefaultNetworkForUid(int)'
android.os.Parcel.createExceptionOrNull (Parcel.java:3248)
android.os.Parcel.createException (Parcel.java:3226)
android.os.Parcel.readException (Parcel.java:3209)
android.os.Parcel.readException (Parcel.java:3151)
android.net.IConnectivityManager$Stub$Proxy.getActiveNetwork (IConnectivityManager.java:1734)
android.net.ConnectivityManager.getActiveNetwork (ConnectivityManager.java:1536)
com.klaviyo.core.networking.KlaviyoNetworkMonitor.isNetworkConnected (KlaviyoNetworkMonitor.kt:94)
com.klaviyo.core.networking.KlaviyoNetworkMonitor.broadcastNetworkChange (KlaviyoNetworkMonitor.kt)
com.klaviyo.core.networking.KlaviyoNetworkMonitor.access$broadcastNetworkChange (KlaviyoNetworkMonitor.kt)
com.klaviyo.core.networking.KlaviyoNetworkMonitor$networkCallback$1.onCapabilitiesChanged (KlaviyoNetworkMonitor.kt:45)
android.net.ConnectivityManager$CallbackHandler.handleMessage (ConnectivityManager.java:4645)
android.os.Handler.dispatchMessage (Handler.java:107)
android.os.Looper.loopOnce (Looper.java:232)
android.os.Looper.loop (Looper.java:317)
android.os.HandlerThread.run (HandlerThread.java:85)

Steps to reproduce

none

The Klaviyo Android SDK version information

2.4.1

Device Information

Pixel 7

Android Studio Version

No response

Android API Level

15

@kcjian kcjian added the bug Something isn't working label Nov 20, 2024
@dan-peluso
Copy link
Contributor

Thanks for reporting! A few follow up questions:

  1. Are you able to reproduce this reliably? If so, what are the steps?
  2. What is the volume of this error? Are you seeing it constantly or occasionally?
  3. We made some updates around Connectivity Monitor in our latest 3.0.0 release. Are you able to test that version and see if the bug persists?

Let us know, it'd be helpful as we look into this.

Copy link

github-actions bot commented Dec 5, 2024

This issue is stale due to inactivity. Please let us know if you are still encountering issues, otherwise this issue will automatically close in 10 days.

@github-actions github-actions bot added the stale label Dec 5, 2024
@dan-peluso
Copy link
Contributor

@kcjian any updates on this? Don't want the bot to close if you're still having issues, just let us know.

@github-actions github-actions bot removed the stale label Dec 6, 2024
Copy link

This issue is stale due to inactivity. Please let us know if you are still encountering issues, otherwise this issue will automatically close in 10 days.

@github-actions github-actions bot added the stale label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants