I have a bucket and set READ, Write permission for Users. But unable to read data even though the user is authenticated and has a valid session. [The user is verified]
TL;DR
The user is experiencing a permission problem when trying to read data from a bucket, even though they have set the appropriate permissions for users. The error message indicates that the HTTP request failed with a 404 status code. The solution suggested in a GitHub discussion is to ensure that a session is being used to request the image.Would you please provide the exact error?
TypeScript
════════ Exception caught by image resource service ════════════════════════════
The following NetworkImageLoadException was thrown resolving an image codec:
HTTP request failed, statusCode: 404, https://mydomain.mydomain.azure.mydomain.com/v1/storage/buckets/avatars/files/e948a230/view?project=1fcc34adc
When the exception was thrown, this was the stack
#0 NetworkImage._loadAsync
_network_image_io.dart:117
<asynchronous suspension>
Image provider: NetworkImage("https://mydomain.mydomain.azure.mydomain.com/v1/storage/buckets/avatars/files/e948a230/view?project=1fcc34adc", scale: 1.0)
Image key: NetworkImage("https://mydomain.mydomain.azure.mydomain.com/v1/storage/buckets/avatars/files/e948a230/view?project=1fcc34adc", scale: 1.0)
If the permission set to Any it work
That would indicate a session isn't being used to request the image. See https://github.com/appwrite/appwrite/discussions/3474#discussioncomment-3109355
Recommended threads
- Help
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...