-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
🔥 Auth error uses the character 'ı' instead of 'i' #3917
Comments
@yunusemregul nice catch! Can you post a PR that corrects it? The github web UI for posting small PRs is possibly even quicker than logging the issue 🙏 |
Well, I didn't expect that I would be the one to fix it. I dont think that this is a simple typo somewhere in react-native-firebase code, I believe this error has something odd with it. I will try my best to find the cause and send a PR if I can fix it. |
Well, open source fixes are always faster when the interested person goes ahead and posts the PR but I think you might have a bad case for it because I think auth is actually not open sourced (I can't find it here? https://github.com/firebase/firebase-android-sdk) and from what I can tell in the code here we take an auth error: Line 356 in 91e4faf
call a reject method Line 1692 in 91e4faf
which delegates and just uses the raw stuff from the SDK: Line 47 in 91e4faf
This may need to be logged as an upstream issue in firebase-android-sdk as the best next step |
I appreciate that you sent the sources related to the issue. I checked them all and as you mentioned it, seems that the issue is not with the react-native-firebase code. It is so odd tho. I think it could be with my android environment somehow. My local language on the android is Turkish and in Turkish these 'ı's and 'i's mix easily. Maybe deep in firebase-sdk, it somehow localizes the error codes but it is stupid, why did they make it this way if they did. I really wonder what is the cause. |
Hard to say - I'd definitely pursue it upstream. In my experience managing a large project with i18n and some languages that have ligatures like that, it's a massive task simply to internationalize everything, and those are the exact sorts of errors that slip through quality checks |
Hello 👋, to help manage issues we automatically close stale issues.
|
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information. |
@yunusemregul @mikehardy this issue is still active on version 11.2.0. I came across it on development android emulator environment when I changed system language to Turkish. I currently don't know if it's an issue for production too, if it is, becomes much more annoying. It makes error handling unstable for different system languages. @yunusemregul did you figure out something later on? Is it reproducible on production and real devices too? |
auth is still not open source in firebase-android-sdk - but based on the comments above it appears that opening an issue there is the next step? |
I couldn't find any solution to this except catching the errors both with 'i' and 'ı' as in my issue screenshot. As @mikehardy said this problem has to be with the upstream firebase-android-sdk. |
Well to be clear, I did the best analysis I could but I am human - I posted my references though so others can verify in case I got something wrong. By my analysis we (react-native-firebase) are just passing along underlying data from firebase-android-sdk though, which is why I assert it is a firebase-android-sdk issue |
FWIW I had this come up in another repo and I just finally remembered it - it is an incorrect use of Locales for toLower I think - should use https://developer.android.com/reference/java/util/Locale#ROOT That is internal to firebase-android-sdk though |
While working on something unrelated, I think I may have seen that this was in our code. Re-opening, and a commit in a moment will close it, I would greatly appreciate if you could retest after you update to any release after v12 @yunusemregul or @oguzhanali 🙏 - it might fix it, or it might still rely on something upstream |
Thank you I will try to test it whenever I can. |
Highlights: - enforce CallSuper so TaskExecutors will always clean up correctly - enforce Locale translation in string manipulaton (Fixes #3917)
Highlights: - enforce CallSuper so TaskExecutors will always clean up correctly - enforce Locale translation in string manipulaton (Fixes #3917)
Highlights: - enforce CallSuper so TaskExecutors will always clean up correctly - enforce Locale translation in string manipulaton (Fixes invertase#3917)
Highlights: - enforce CallSuper so TaskExecutors will always clean up correctly - enforce Locale translation in string manipulaton (Fixes invertase#3917)
Highlights: - enforce CallSuper so TaskExecutors will always clean up correctly - enforce Locale translation in string manipulaton (Fixes invertase#3917)
Issue
Auth error has 'ı' s instead of 'i' s.
Heres the output for below code:
Project Files
iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
Click To Expand
react-native info
output:Firebase
module(s) you're using that has the issue:Firebase Auth
TypeScript
?N
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: