🐛 Bug Report: Cookie Error
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- authentication, mobile
Hướng nghiên cứu
Bắt đầu với đường dẫn callback OAuth trong CallbackActivity.kt và WebAuthComponent.kt, sau đó kiểm tra Account.kt xung quanh lệnh gọi createOAuth2Session được hiển thị trong stack trace. Tái hiện quy trình xác thực Google trên Android 15 bằng ví dụ được liên kết và xác minh rằng callback trả về cookie xác thực mà không bị crash.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
👟 Reproduction steps
When I try to auth with google in android the below error returns
code: https://github.com/202420505/APPWRITE-GOOGLE-AUTH
🔽LOG🔽
07-24 10:55:09.815 27458 27458 E AndroidRuntime: FATAL EXCEPTION: main
07-24 10:55:09.815 27458 27458 E AndroidRuntime: Process: me.moontree.test.appwrite.auth.app1, PID: 27458
07-24 10:55:09.815 27458 27458 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{me.moontree.test.appwrite.auth.app1/io.appwrite.views.CallbackActivity}: io.appwrite.exceptions.AppwriteException: Authentication cookie missing!
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4454)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4685)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:112)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:174)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:109)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:81)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2895)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:257)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.os.Looper.loop(Looper.java:342)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:9634)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: Caused by: io.appwrite.exceptions.AppwriteException: Authentication cookie missing!
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at io.appwrite.services.Account$createOAuth2Session$3.invoke(Account.kt:1153)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at io.appwrite.services.Account$createOAuth2Session$3.invoke(Account.kt:1143)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at io.appwrite.WebAuthComponent$Companion.onCallback(WebAuthComponent.kt:85)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at io.appwrite.views.CallbackActivity.onCreate(CallbackActivity.kt:16)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:9363)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:9332)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1526)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4436)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: ... 13 more
👍 Expected behavior
It should return a proper cookies
👎 Actual Behavior
It actually returns a error and the app crashes
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Something else
🧱 Your Environment
I used android 15 in samsung One UI 7.0
Used Android SDK Latest Version (8.1.0)
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
- Ngôn ngữ chính
- Kotlin
- Star
- 156
- Fork
- 29
- Merge trung bình
- 8 giờ 49 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của appwrite/sdk-for-android
-
Realtime messages can come out of order (and in fact are processed in parallel)Có thể làm lại được @ChiragAgg5k đã nhận 267 ngày trước và không có pull request nào đang mở. Đang mở
appwrite/sdk-for-android#103 · 1 người được giao ·
-
Realtime does not get notified or retry socket failures correctlyCó thể làm lại được @ChiragAgg5k đã nhận 267 ngày trước và không có pull request nào đang mở. Đang mở
appwrite/sdk-for-android#101 · 1 người được giao ·
-
Support mTLSCó thể làm lại được @ChiragAgg5k đã nhận 267 ngày trước và không có pull request nào đang mở. Đang mở
appwrite/sdk-for-android#100 · 1 bình luận · 1 người được giao ·
-
Compose MultiplatformĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
appwrite/sdk-for-android#99 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 52/100
appwrite/sdk-for-android#96 ·
Tất cả issue của appwrite/sdk-for-android
Issue tương tự
-
Unified account interface not translated into Simplified ChineseCó thể đã có người làm @xuenhua đã nhận 2 ngày trước. Đang mởunconfirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
thunderbird/thunderbird-android#11936 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Update toast stylingĐang mởdesign good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
scribe-org/Scribe-Android#778 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ankidroid/Anki-Android#23392 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
AI Generated CI/CD ⚒️ Flaky-tests 🐦 go 🏃
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
valkey-io/valkey-glide#7772 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Error Handling Swift
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Automattic/wordpress-rs#1759 ·
Maintainer thường phản hồi trong vòng 1 ngày