
I have a user collection and added a relationship attribute with post collection. When I tried creating user document, the document was created but it throws server error. When I removed the relationship attribute and tried again it now stops sending back server error.

Error 500 if collection has relationship attribute

are you doing this in the console or via an SDK?

Are you on Cloud or Self-Hosted

Hi, I use Cloud

Client SDK

can you show your code?

Sure... here we go. So It creates the document but it returns error whenever I have user->post collection relationship attribute in my user collection. 🤔

Hi @Steven , maybe you have idea on this too? Would really appreaciate it 🙏

what's your project id?

ProjectId: 651a403634ca830211aa

would you be able to share an appwrite.json of your collections?

Hey @Steven Would screenshots of my collection's attributes work?

If you're not using CLI, I think it will be fine

Created the collections using cloud. 🙏

Sorry the details would be really helpful to help us try to recreate it exactly as you have it.

Oh I created these manually in Cloud. I only use client SDK. For permissions I set any and checked all boxes for now.

Oh hey @Steven , I tested again just now. Seems like this is now fixed.

Did you have modified anything?

Nope I didnt. It just worked suddenly now. My last touch was a few housr ago and I just remove and add again the relationship attribute and tested but it was still sending the error that time. Not sure what happen. But it works now.

Really apprecite the help here guys. Thank you! Can mark this as solved. 🙏

[SOLVED] Error 500 if collection has relationship attribute

Oh I just remember, a few minutes before I tested this again, I added the same permissions to post collection which - fixed another issue. Maybe that fixed this too..
Recommended threads
- My collection is not updating after csv ...
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attribute stuck on proccessing
i tried creating a new attribute butits stuck on proccessing,i did a hard refresh,cleared cache everything but still stuck on proccessing,also in my functions w...
