[firebase-auth] Blocking function timeout returns UNKNOWN error code (code 47) instead of a dedicated timeout code
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 领域
- authentication, mobile
调研方向
首先跟踪 Android SDK 如何处理 beforeUserCreated 和 createUserWithEmailAndPassword 期间阻塞函数的超时,包括它变为 UNKNOWN/错误代码 47 的位置。比较现有的身份验证错误映射,并确定引入专用超时代码的范围。当 Android Auth 使用者可以将超时失败与通用内部错误区分开时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Description
When a Firebase Auth blocking function (e.g. beforeUserCreated) times out, the Android SDK throws an error with code UNKNOWN (error code 47) instead of a dedicated, meaningful error code.
This makes it impossible for developers to programmatically distinguish between a genuine internal error and a blocking function timeout, leading to hours of debugging.
Steps to Reproduce
- Set up a
beforeUserCreatedblocking function that takes longer than the allowed timeout. - Call
createUserWithEmailAndPassword(or any auth method guarded by the blocking function) from an Android app. - Observe the exception: it surfaces as
UNKNOWN/ error code 47 with a generic message like "An internal error has occurred."
Expected Behavior
A dedicated error code (e.g. BLOCKING_FUNCTION_TIMEOUT or similar) should be returned so that developers can handle this case explicitly.
Actual Behavior
The error is surfaced as UNKNOWN (error code 47):
Error code: 47
Message: An internal error has occurred.
From Flutter/FlutterFire (where this was originally reported):
[firebase_auth/unknown] An internal error has occurred. [ Error code:47
FirebaseAuthException
Firebase Auth error code: unknown
Firebase Auth error message: An internal error has occurred. [ Error code:47
Context
This was reported on the FlutterFire repository: https://github.com/firebase/flutterfire/issues/18022
The FlutterFire maintainer confirmed that error codes and messages are passed through as-is from the native Android SDK, and recommended opening this issue upstream to request a dedicated error code for blocking function timeouts.
A dedicated error code would benefit all Firebase Auth consumers on Android (native and cross-platform via FlutterFire, React Native Firebase, etc.).
Platform
- Android (Firebase Auth Android SDK)
- Also surfaced via FlutterFire (Flutter wrapper)
- 主要语言
- Java
- 星标
- 2.6k
- 派生
- 733
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 72
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/firebase-android-sdk 的其他 Issue
-
api: remoteconfig
难度 2/5 1-3 小时 新手友好度 78/100
firebase/firebase-android-sdk#8827 ·
维护者通常 1 天内回复
-
Crashlytics plugin writes build ID lists in directory listing order, so APKs can differ between machines可能已有人在做 @mrober 于 8 天前认领。 未关闭api: crashlytics
难度 2/5 1-3 小时 新手友好度 72/100
firebase/firebase-android-sdk#8789 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
api: auth
难度 2/5 1-3 小时 新手友好度 68/100
firebase/firebase-android-sdk#8505 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 15/100
firebase/firebase-android-sdk#8835 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
firebase/firebase-android-sdk#8832 ·
维护者通常 1 天内回复
查看 firebase/firebase-android-sdk 的全部 Issue
相似的 Issue
-
good first issue
难度 2/5 1-3 小时 新手友好度 65/100
commons-app/apps-android-commons#7341 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
NationalSecurityAgency/ghidra#10220 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复