Skip to content
Back

Null issue

  • 1
  • Databases
  • Cloud
shefa
6 Nov, 2024, 17:51

I have a collection Comments that has a relation with another collection Users called likes, the problem is whenever I add new User (like) it response with this message pls help

TL;DR
Developers facing null errors in their app console. Troubleshooting includes deleting all documents in collections, considering potential issues with relations between collections, and checking request payloads in the browser's dev tools. Experimental relationships might impact performance. Specific issue arises when adding a new User (like) to a Comments collection.
Steven
6 Nov, 2024, 20:15

Please keep in mind relationships are experimental and may have performance implications depending on how they're used.

Steven
6 Nov, 2024, 20:16

Can you check what the request payload is for the request sent when you click Update? You should be able to see it in your browsers dev tools on the network tab

shefa
6 Nov, 2024, 21:33

I think the payload is fine

Steven
6 Nov, 2024, 21:39

did you make changes to your collections after this document was created?

shefa
6 Nov, 2024, 21:40

Im trying multiple solutions right now, I saw that deleting documents that has relations with other collections can cause this issue

shefa
6 Nov, 2024, 21:40

so I deleted every document in each collection

shefa
6 Nov, 2024, 21:41

now I get new Error 😆

shefa
6 Nov, 2024, 21:42
shefa
6 Nov, 2024, 21:44

this is in console

shefa
6 Nov, 2024, 21:44

but the app still the same error

Steven
6 Nov, 2024, 23:55

is that an old attribute?

shefa
7 Nov, 2024, 00:41

yes

Steven
7 Nov, 2024, 00:45

You said you deleted every document so this is a new document you created and then updated?

shefa
7 Nov, 2024, 00:52

yes

shefa
7 Nov, 2024, 00:52

if I make a new database with the same schema will the problem be solved?

Steven
7 Nov, 2024, 04:15

Yes probably

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