Skip to content
Back

Playing a video the showing an error

  • 0
  • 2
  • Android
  • Databases
Krishanu singh
22 Nov, 2025, 11:18

Playing a video the showing an error like,

FATAL EXCEPTION: DefaultDispatcher-worker-2 (Ask Gemini) Process: com.example.video, PID: 5629 io.appwrite.exceptions.AppwriteException: Error: Server Error at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:343) at com.google.gson.internal.ConstructorConstructor$9.construct(ConstructorConstructor.java:262) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.createAccumulator(ReflectiveTypeAdapterFactory.java:427) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:383) at com.google.gson.Gson.fromJson(Gson.java:1227) at io.appwrite.extensions.JsonExtensionsKt.fromJson(JsonExtensions.kt:17) at io.appwrite.services.Realtime$AppwriteWebSocketListener.handleResponseError(Realtime.

TL;DR
Ensure URLs are correct, implement proper error-handling, verify backend response is in JSON format, and confirm Kotlin data class matches JSON.
22 Nov, 2025, 12:02

Have you checked whether all the URLs are correct or not? Are you using proper error-handling?

22 Nov, 2025, 12:02

Also, please make sure your backend returns the response in proper JSON format and confirm that your Kotlin data class matches the actual JSON returned

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more