Back

[SOLVED] 500 error after extending enum with a new value

  • 0
  • Self Hosted
  • Databases
  • General
WhiteWalker72
15 Nov, 2023, 09:50

I have this enum with these possible values: client, coach, manager and I added a new value: coach_manager. Updating the enum went fine but if I now try to create a document with this new coach_manager value I get an 500 error back from Appwrite.

When I delete the attribute and recreate it with coach_manager as a value I don't get a 500 error. This isn't a solution for me because data is removed when I delete the attribute.

TL;DR
Issue: User is experiencing a 500 error after extending an enum with a new value in Appwrite. Solution: This issue is a known problem and has been reported on GitHub. It seems that when adding a new value to an existing enum, creating a document with that new value causes a 500 error. One workaround is to delete the attribute and recreate it with the new value, but this will result in the loss of data.
Guille
15 Nov, 2023, 12:25

Are you on cloud or self hosting?

Drake
15 Nov, 2023, 14:42

The problem with adding a value is a known issue: https://github.com/appwrite/appwrite/issues/5595

WhiteWalker72
15 Nov, 2023, 14:44

Hm I did see that issue but didn't know it was the same. So if an enum with a bigger length already exists I should be able to extend the enum without any issues?

WhiteWalker72
15 Nov, 2023, 15:57

[SOLVED] 500 error after extending enum with a new value

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