I will wait to othres to response to this issue, maybe the cloud backup is one of the root cause of this issue
everyone
can someone help me to this issue
I am still encountering this issue
This shouldn't happen because of a backup. @Mosh Ontong do you get any errors in your browser? can you check using your devtools?
Also, are you able to access this doument using the API?
it actually successfully fetch the document based on the network tab and no error occurs but in my dashboard does not show the documents data
Can you share the document structure? It sounds like a UI problem if this is the case.
In I just check the console in dev tab right now this is the error
but fetching the payload in server no error occur
@Torsten Dittmann could you or someone from the console team take a look at this?
The backups only cause problems with schema changes like creating an attribute or creating a collection
That's the problem. Malformed permissions
what do you mean malformed permission? if it is how to fix then?
It should be an array. You can try to update it
you are right I just created a dummy document, I create this dummy through console and yeah it sucessfully loaded. I think we should have feedback on console ui here if this issue occured, I cant delete this document because of this issue
This is my code to create a document
final doc = await databases.createDocument(
databaseId: super.bookingTimelineCredential.databaseId,
collectionId: super.bookingTimelineCredential.collectionId,
documentId: ID.unique(),
data: bookingTimeline.toJson(),
permissions: [
Permission.read(Role.users()),
Permission.update(
Role.user(
bookingTimeline.bookingRef.clientProfile.id,
),
),
Permission.update(
Role.user(
bookingTimeline.bookingRef.service.ownerId,
),
),
Permission.delete(
Role.user(
bookingTimeline.bookingRef.clientProfile.id,
),
),
Permission.delete(
Role.user(
bookingTimeline.bookingRef.service.ownerId,
),
),
],
);
Every I create a document then this malformed will always occur? But when I create document through console the malformed permission will not occur
Ah yes that makes a lot of sense 😅
The thing is we should never let the permissions get malformed so it's a backend problem, not a console problem
Maybe the client id and the owner id were the same?
yes it is
For now, you'll need to make sure you're passing unique values. On our end, we'll need to handle this better
ok this will be noted thanks steven
[SOLVED] Document cannot load
btw, looks like this fix will be in appwrite 1.4.0: https://github.com/appwrite/appwrite/issues/5661
Recommended threads
- Query multi-tenant db with $permissions ...
I'm setting up a multi-tenant database with RLS enabled. My users my have permissions set for multiple Teams, and as such when they query the database with the ...
- All projects deleted
Hello, from the appwrite console last week I re-activated some of my old project and published them, yesterday I checked and none of the apps were working, now ...
- cant resume project
Invalid console fingerprint event i try man time