appwrite / sdk-for-android

[READ-ONLY] Official Appwrite Android SDK šŸ’š šŸ¤–
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
98 stars 21 forks source link

šŸ› Bug Report: Invalid document structure: Unknown attribute: "mClassLoader" #38

Closed PranavPurwar closed 10 months ago

PranavPurwar commented 11 months ago

šŸ‘Ÿ Reproduction steps

Setup appwrite Create account and user object Try to add document to database okhttp tries to embed class loader into the api request thus crashing the app Sample, running logEvent method causes the error/log

šŸ‘ Expected behavior

The request should succeed and the document should be created

šŸ‘Ž Actual Behavior

The app crashes (or in the linked app, logs the error) with

io.appwrite.exceptions.AppwriteException: Invalid document structure: Unknown attribute: "mClassLoader"
    at io.appwrite.Client$awaitResponse$2$1.onResponse(Client.kt:490)
    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)

šŸŽ² Appwrite version

Appwrite Cloud

šŸ’» Operating system

Something else

šŸ§± Your Environment

The code runs on an Android device. I tried with SDK v3.0.0 and v3.0.1 both.

šŸ‘€ Have you spent some time to check if this issue has been raised before?

šŸ¢ Have you read the Code of Conduct?

joeyouss commented 10 months ago

Hi @PranavPurwar - can you try to check your code and if possible, link the exact code that is causing this.

PranavPurwar commented 10 months ago

Nevermind, I was trying to pass a Bundle object within data parameter while creating a document.