Back

user_unauthorized in Cloud Environment

  • 0
  • Flutter
  • Cloud
shimmy
5 Mar, 2024, 08:49

Hey, I have a Flutter app running on an iOS simulator. I have the same project self-hosted and in the cloud. After creating an OAuth session with Google, I create a document. When I try to read it, I can do so on the self-hosted version, but in the cloud, I receive a 'user_unauthorized' error. It's exactly the same project, and the collection has the same permissions.

TL;DR
Issue: 'user_unauthorized' error in Cloud Environment for Flutter app. - Check Permissions & Document security in Database Collection. - Look for Document Level Permissions. - Ensure consistency between self-hosted and cloud project settings. Solution: Investigate and adjust permissions and document security settings in the Cloud Environment to resolve the 'user_unauthorized' error for reading documents.
darShan
5 Mar, 2024, 08:53

Are there Document Level Permissions?

shimmy
5 Mar, 2024, 08:54

Not sure if related, but it says '-1 documents'

darShan
5 Mar, 2024, 08:55

In your Database > Collection > Check for Permissions & Document security

darShan
5 Mar, 2024, 08:55

Naah, thats a different Stats related bug.

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