
I get this message in the console when I try to open a specific document in the control panel. I even try to unregister the service worker, for some reason, it do not open, if I refresh I get a blank screen. So no way to even delete the document from the UI. Did I missed something?

This may help?

Failed to fetch

I may know what happened. If I'm right, a small validation fix may be required.
When I created the document, I used this code in permissions:
Permission.read(Role.team(currentTeamId)),
Permission.update(Role.team(currentTeamId)),
Permission.delete(Role.team(currentTeamId)),
Permission.read(Role.team('admin')),
Permission.update(Role.team('admin')),
Permission.delete(Role.team('admin')),
in that very case, currentTeamId
was equal to 'admin'
which resulted in redundant permissions. This could cause the fetch problem?

To avoid that, I had to use something like:
permissions = [];
permissions.push(Permission.read(Role.team(currentTeamId)));
permissions.push(Permission.update(Role.team(currentTeamId)));
permissions.push(Permission.delete(Role.team(currentTeamId)));
if (currentTeamId!=='admin'){
permissions.push(Permission.read(Role.team('admin')));
permissions.push(Permission.update(Role.team('admin')));
permissions.push(Permission.delete(Role.team('admin')));
}
but... I think this is overkill to do have to do this, isn't? 🙂

Perhaps it's only a GUI problem too, as everything works fine in my app, it's only in the Appwrite control panel I can't open the document. Anyway, I'll try to delete all "broken" documents from my app, this is the next CRUD part I have to code.

Can you check what the get document API returns from the network logs in the browser dev tools?

Ah, I should check... i now have deleted them all using the SDK...

I will try to reproduce

I reverted my code but I seems cannot be able to reproduce the problem... it's embarassing hehe if I see it again, I'll look in the network pane and I'll re-open the post here.
Recommended threads
- how many Teams can be created?
I am creating an app where I will let users create groups. This could mean there will be many groups created by user, to isolate those groups properly I am thin...
- React native app login via Safari
Hi! I deployed for debug my React Native app in web, chrome everythink works well but in safari on mac and ios I cant login. I found this one error in safari co...
- Relationships restricted to a max depth ...
When I do query like: ``` await _databases.listDocuments( databaseId: AppwriteConfig.DATABASE_ID, collectionId: AppwriteConfig.SERVICES_COLLECTI...
