Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Invalid document structure: Unknown attribute: "mClassLoader" #38

Closed
2 tasks done
PranavPurwar opened this issue Sep 2, 2023 · 2 comments
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@PranavPurwar
Copy link

👟 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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@PranavPurwar PranavPurwar added the bug Something isn't working label Sep 2, 2023
@joeyouss joeyouss self-assigned this Sep 5, 2023
@joeyouss
Copy link

joeyouss commented Sep 5, 2023

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

@PranavPurwar
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants