Rank 5: Hypervisor
I will wait to othres to response to this issue, maybe the cloud backup is one of the root cause of this issue
Votes
1
Replies
24
Participants
Unknown
Messages
25
Rank 5: Hypervisor
I will wait to othres to response to this issue, maybe the cloud backup is one of the root cause of this issue
Rank 5: Hypervisor
everyone
Rank 5: Hypervisor
can someone help me to this issue
Rank 5: Hypervisor
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?
Rank 5: Hypervisor
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.
Rank 5: Hypervisor
In I just check the console in dev tab right now this is the error
Rank 5: Hypervisor
but fetching the payload in server no error occur
Rank 5: Hypervisor
@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
Rank 5: Hypervisor
what do you mean malformed permission? if it is how to fix then?
It should be an array. You can try to update it
Rank 5: Hypervisor
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
Rank 5: Hypervisor
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?
Rank 5: Hypervisor
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
Rank 5: Hypervisor
ok this will be noted thanks steven
Rank 5: Hypervisor
[SOLVED] Document cannot load
btw, looks like this fix will be in appwrite 1.4.0: https://github.com/appwrite/appwrite/issues/5661