-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛 [firebase_database] Crashes when querying with .equalTo(null).onValue - method not found: 'apply' on null #9091
Comments
@dnkoulouris
Does reverting |
The strange thing is that this issue does not exist in debug builds (I have to deploy to my test server).
This happens when I upgrade all the libraries to the new version. |
Thanks for the update @dnkoulouris
What version were you on earlier and which plugins did you upgrade to latest ? |
Update: I updated firebase libs to the latest versions and left firebase_database to the previous one (9.0.18).
Code sample:
PS: I removed all the firebase related scripts in the index.html and used only the flutterfire configure command. I am also using separate database location rather than the default one (default is US, I am providing the EU link in the firebase_options file). |
Thanks for the update. This seems to be an issue with firebase js sdk issue to follow-up for reference: firebase/firebase-js-sdk#6445 |
I have similar issue, my firebase SDK version is 9.9.0 |
I have a similar issue. |
Hello :) |
I'm also using a separate database location rather than the default one, and having this issue. Perhaps that's a pattern, and explains why it can't be easily reproduced. |
In my case, the problem did not occur in debug build, but occur on release build (Flutter for Web). |
Same here. Perhaps we have four patterns: 1) Use of separate database location, 2) issue occurs only with release build, 3) issue only manifests for web, and 4) builds without issue or warning, error only occurs at release run-time. @Lyokone, that's likely why you couldn't reproduce this. It's a strong block for me, can't release the latest update without this. |
@Lyokone Any update on this issue? Or any workaround I can do? |
Same issue in profile and release mode only. |
Apparently, this thread is labeled as "waiting for customer response", so, no attention. @Lyokone, @russellwheatley, @darshankawar, others, can you tell us what further information you need before you move on this? We've delayed a release for a week waiting for at least some kind of work-around. This is a hard stop, we need some attention here. |
@ScottWallace we're waiting for a full repro as I was unable to reproduce with the provided information. A similar thing happen in Cloud Firestore and was due to dart2js issue. The workaround you can try is to release with |
When I query something like this
db.ref().child('XXX').child(XXX).orderByChild('XXX').equalTo(null).onValue
I get the following error:
Uncaught TypeError: Cannot read properties of undefined (reading 'apply')
,NoSuchMethodError: method not found: 'apply' on null
This exists after upgrading to the latest version
9.0.19
. If I revert my firebase packages to the previous versions, it works normally.P.S. I migrated from index.html initialization to the new in-dart FlutterFire CLI initialization, and removed all the firebase related code from the .html files.
The text was updated successfully, but these errors were encountered: