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
- Helping in unblock my account
I deleted my Appwrite Cloud account that was linked via GitHub. Now I activated my GitHub Student Pack and want to sign up again using the same GitHub account, ...
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...
- Finding job
Hi. I am a full-stack developer with experience in developing scalable and user-friendly web applications. I handle both front-end and back-end development, im...