-
Notifications
You must be signed in to change notification settings - Fork 433
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
Firestore string value is empty #895
Comments
Anyone? |
Sorry for the trouble with this. I'm currently working on reproducing your findings and will update when I have an idea of what's going wrong. |
Ok thank you, I am gonna try downgrading the Firebase plugin |
In case you want to know, I just tested it... and it works perfectly in 6.16.1 |
That's good to know. I'm still working on reproducing this in a way that I can debug what's going on. |
I've been unable to reproduce the empty value you're describing. All the values I read and write come through without issue. I've tried several variations based on your stackoverflow post:
In all cases I'm unable to observe the empty value that you're seeing in your logs. I've been reproducing using an emulated Pixel 2 running Android 7.0. Do you observe this error when running on an Android emulator? If you don't see this on the emulator but do observe it on a physical device, which device is it? Another tack to try is to look to see if this is somehow specific to your application. Do you see the same kind of empty values if you add logging to the Firestore Unity quickstart? |
I've followed your steps (though I had to change the code because nothing was actually calling
I've also written a small node.js program that writes to If you can put together an example that reproduces this issue I'll happily look into it further, but at this point I suspect there must be a bug somewhere in your application, possibly in the function that's writing values to this document. |
Anyway, I just gonna let that go.... everything works fine in firebase 6.16.1! I am 100% sure it is not my app.
Thank you, and see you next bug. bye bye |
I'm genuinely interested in finding and fixing this issue, but can't do anything without being able to observe the issue myself. You mentioned that adding data via the console works, but the values don't show when added via a function. Is it possible there are differences in the kind of data you're adding in these cases? For example, is the function setting more or slightly different data? Could you send the complete contents of a document that's not working? |
I only have one document in social called Lobby 1 all the data I add manually works but all the cloud function generated data does not work (psst: only on android maybe ios too did not test ios) on the unity engine everything works perfectly. M_1DQOIZEPSebTHEking:"ANDCA1213181337211000Bein oui" Generated by cloud function will not work.
Just to recap: |
Is it possible that the strings that are failing contain unicode characters? If that's the case, this is the same issue as #900. |
You can see for yourself in my last post, all failed except 2 of them that I manually enter |
To reproduce the bug make sure to use the -> Package Manager -> Firestore 7.0.1 |
I'm definitely using Firestore 7.0.1. I've adapted the cloud function code you provided to write data that looks very similar to what you've shown:
Using this data the values still come through. Even after bumping the number of entries in the document to 100 the values still come through. If I add a non-ASCII character, this does cause the value to end up empty--this is the effect of issue #900. If this were happening to you you'd see a |
I've been facing the same issue. |
@tamotamago Firestore in release 7.0.1 contained a bug in the way it handled Unicode strings that resulted in empty string values (#900). We've released 7.0.2 which fixes that. It's not clear if this issue is the same. I've been unable to reproduce the issue described here--string values being empty only when changed via Cloud Function--so it's not clear if these are the same issue. Are you seeing |
I can't see the 7.0.2 on unity Package manager yet... I will test it as soon as it comes out. |
@wilhuff 7.0.2 works well for me. Thanks!
In my case, Japanese and German characters were emptied. English characters are fetched correctly. And I did not see any exceptions on Android Logcat. |
@tamotamago Thank you for confirming that 7.0.2 fixed your issue. I will close this issue based on this assessment. |
@SebastienDevQuebec - We will re-open this issue if you are still blocked. |
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
Not sure if it can be reproduced.
Here is a link to the detailed issue on StackOverflow:
https://stackoverflow.com/questions/65174003/unity-firestore-weird-bug#comment115384693_65174003
In summary,
I listen to a document, and with the value I do things. it works great in the editor but when compiled on my mobile the value is always = to "" (nothing).
The text was updated successfully, but these errors were encountered: