I have an enum with two elements e.g. 'dave' and '1emily1', inserting a field with the enum set to 'dave' works as expected but inserting a field with '1emily1' as the enum paramter return an internal error 500.
I am doing this since I want to use id's as elements in my enum attribute.
Is this simply not possible? there is no problem adding an enum with integer values in the appwrite dashboard but the request to do it fails.
weird..what's your project id?
645c7e03796ad3f1640b
weird...im not seeing anything for that project id...
seems to work for me:
can you try removing the elements and adding them back?
I have removed and added the elements a couple of times, if I try to add a field with a attribute thats not in the enum elements I get like a error saying the paramter should be one of these (dave, 1emily1) or whatever it is, but doing it with the correct element doesn't throw this error
So it is recognizing that the element exists in the enum it just fails to add the field if the element contains numbers for some reason
and you're testing via the console?
have a react project setup and using the web sdk
does it work for you if you test with a element in the enum with like a project or field ID? it may be related to the length of the element
oh wait....did you create it with 1 element first and then added a longer one?
yes
that might be the problem
Recommended threads
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...