NPE on HttpStream.writeRequestHeaders

189 views
Skip to first unread message

lbl...@gmail.com

unread,
Mar 6, 2024, 5:40:38 PM3/6/24
to Firebase Google Group
implementation platform('com.google.firebase:firebase-bom:32.7.3')
implementation("com.google.firebase:firebase-analytics")
implementation "com.google.firebase:firebase-crashlytics-ktx"
implementation("com.google.firebase:firebase-config-ktx")

I tried to use remote-config, and there is an internal exception reported via Crashlytics about it, that has nothing related to the app's code in the stacktrace:

https://console.firebase.google.com/u/0/project/lwp-plus/crashlytics/app/android:com.lb.lwp_plus/issues/e628a05b6149474f858c880ac462e9c1?time=last-seven-days&sessionEventKey=65E6B0050081000160EA364BCF9A60C2_1921485053148618022

Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference
       at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606)
       at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475)
       at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)
       at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:248)
       at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:211)
       at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:30)
       at com.google.firebase.remoteconfig.internal.ConfigRealtimeHttpClient.lambda$closeRealtimeHttpStream$2(ConfigRealtimeHttpClient.java:605)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
       at com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java:47)
       at java.lang.Thread.run(Thread.java:1012)



Jen Harvey Hugg

unread,
Mar 6, 2024, 6:42:32 PM3/6/24
to fireba...@googlegroups.com
Hello!

This is actually a case that we're trying to get more information on, we've seen a few reports at https://github.com/firebase/firebase-android-sdk/issues/5751.

I'm sharing this with one of our developers who's been looking at this, but can you also file this with the Firebase Developer Support team via the form at https://firebase.google.com/support/troubleshooter/remote_config/help so that we can get it fast-tracked internally?

Thanks a bunch in advance and thanks for using Firebase!

- Jen @ Firebase


--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/84f33e88-2549-400f-87b1-c28f61352a09n%40googlegroups.com.

lbl...@gmail.com

unread,
Mar 7, 2024, 7:20:18 PM3/7/24
to Firebase Google Group
OK wrote there about it, by linking here.

Jen Harvey Hugg

unread,
Mar 8, 2024, 1:10:28 AM3/8/24
to fireba...@googlegroups.com, lbl...@gmail.com

The team released a fix for this today, this should be resolved on Firebase Android BoM 32.7.4, see https://firebase.google.com/support/release-notes/android#2024-03-07 for details.

Thanks for reporting this and for filing a case!

Reply all
Reply to author
Forward
0 new messages