question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broken firebase API broken since 8/26

See original GitHub issue

I have been getting this error on my project, so suspecting some change on firebase side I created a fresh new nativescript project, fresh new firebase project with fresh new android app , adding fresh database data, still getting the same error which I have never seen before. Essentially all firebase.instance inside nativescript-plugin-firebase plugin are null all of a sudden without any change in code from my side.

Error Message Received on terminal:

JS: Error in firebase.addValueEventListener: TypeError: Cannot read property 'child' of null
JS: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'child' of null
JS: TypeError: Cannot read property 'child' of null
JS:     at file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/nativescript-plugin-firebase/firebase.js:1456:24
JS:     at new ZoneAwarePromise (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:776:29)
JS:     at Object.firebase.addValueEventListener (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/nativescript-plugin-firebase/firebase.js:1444:10)
JS:     at Observable._subscribe (file:///data/data/org.nativescript.bbnsng/files/app/modules/services/firebase.service.js:23:22)
JS:     at Observable._trySubscribe (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/rxjs/Observable.js:57:25)
JS:     at Observable.subscribe (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/rxjs/Observable.js:45:27)
JS:     at Observable.ConnectableObservable.connect (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/rxjs/observable/ConnectableObservable.js:37:18)
JS:     at RefCountOperator.call (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/rxjs/observable/ConnectableObservable.js:101:49)
JS:     at Observable.subscribe (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/rxjs/Observable.js:42:22)
JS:     at ObservableStrategy.createSubscription (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/@angular/common/bundles/common.umd.js:2664:22)
JS:     at AsyncPipe._subscribe (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/@angular/common/bundles/common.umd.js:2778:45)
JS:     at AsyncPipe.transform (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/@angular/common/bundles/common.umd.js:2755:22)
JS:     at Object.eval [as updateDirectives] (ng:///HomeModule/HomeComponent.ngfactory.js:127:68)
JS:     at Object.debugUpdateDirectives [as updateDirectives] (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/@angular/core/bundles/core.umd.js:12613:21)
JS:     at checkAndUpdateView (file:///data/data/org.nativescript.bbnsng/files/app/tns_modules/@angular/core/bundles/core.umd.js:12025:14)

Steps followed:

  • Create a new repo
  • Create a new firebase project in firebase console
  • Create an android app under that probject with Package name org.nativescript.bbnsng
  • Run keytool -list -v -keystore ~/.android/bbnsng.keystore to get SHA1, update app with same
  • Add some data to database and make permission rules public
  • Code up the corresponsding nativescript angular app to this state https://github.com/ishandutta2007/bb_ns_ng_main_app2
  • downloaded google-services.json and add it to app/App_Resources/Android/
  • Run the app.

Steps to reproduce:

git clone https://github.com/ishandutta2007/bb_ns_ng_main_app2.git
cd bb_ns_ng_main_app2
tns run android

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
prestopastocommented, Sep 4, 2017

I’m seeing something similar here. Not getting “firebase.init done” or “firebase.init error”. Weird thing is it seems to be Android only. iOS builds are working fine on the same project.

0reactions
anuragd7commented, Dec 27, 2017

Hi @eddysen , @ishandutta2007 , @ivegotasthma, @prestopasto Did any of you manage to solve this issue. I am getting the same issue after upgrading my app to tns 3.4 and with plugin version 5.0.5 Any pointers will be most helpful. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deployments are broken · Issue #4663 · firebase ... - GitHub
After many hours I was able to fix this on my machine. It seems as if the latest version of firebase tools caused...
Read more >
Release Notes | Firebase - Google
The Firebase Admin Go SDK (v4.10.0) is now available. This release includes emulator support in the Realtime Database API and comes with a...
Read more >
Google Cloud release notes | Documentation
For more information, see Rolling back a node pool after an upgrade. ... Upgrading the Cloud Data Fusion version for Replication jobs is...
Read more >
Firebase Status Dashboard
This page provides status information on the services that are part of Firebase. Check back here to view the current status of the...
Read more >
How to prevent errno 32 broken pipe? - python - Stack Overflow
The broken pipe error usually occurs if your request is blocked or takes too long and after request-side timeout, it'll close the connection ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found