NullPointerException occurring when calling account.createEmailPasswordSession()
- 0
- Android
- Auth
- Cloud

Android SDK version 5.0.0 Creating session with by email and password gives NullPointerException
FATAL EXCEPTION: OkHttp Dispatcher Process: com.anshtya.myhub, PID: 13693 java.lang.NullPointerException: null cannot be cast to non-null type kotlin.collections.List<kotlin.Any> at io.appwrite.models.Session$Companion.from(Session.kt:241) at io.appwrite.services.Account$createEmailPasswordSession$converter$1.invoke(Account.kt:1155) at io.appwrite.services.Account$createEmailPasswordSession$converter$1.invoke(Account.kt:1153) at io.appwrite.Client$awaitResponse$2$1.onResponse(Client.kt:541) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at java.lang.Thread.run(Thread.java:1012)
In SDK version 4.0.0 session got created without any errors.
Recommended threads
- Email Verification Email
Hi everyone, I’m currently experiencing an issue with the email verification functionality. When I trigger the verification, the request returns a valid respon...
- Appwrite Cloud Custom Domains Issue
I’m trying to configure my custom domain api.kondri.lt (CNAME pointing to appwrite.network., also tried fra.cloud.appwrite.io with no luck ) but encountering a ...
- Persistent 401 Unauthorized on all authe...
Hello, I'm facing a critical 401 Unauthorized error on my admin panel app and have exhausted all debugging options. The Problem: When my React app on localhos...
