
I was trying to create a new document in Appwrite Database, it was working fine but suddenly started giving me "Server Error" I've self hosted on version 1.3.1

Check the docker logs for your appwrite container

what is the command for that?


done

I can now add from console

but still getting the same error in from function

Only SMTP is down, because I've configured it

Make sure you're looking at logs for the right container and then find the log entry related to the server error

Which container I should look for in this case?

Btw, you should really upgrade Appwrite to 1.3.4 and run the migrate command


umm understood, I was just thinking about this.

I understood the error, but why this error.
paymentStatus
is an enum. And I added a new Enum by editing this attribute, which was a bit long than the others. Do you think mariadb registered the following enum length and now any enum greater than that length would be forbidden?

done \✅

ahh its working now, this was the issue YES.

Steven, we should tell people to not add Enums greater than the highest length already present in that attribute.
eg:
paymentStatus
Attrib has
- 3 Enums:
Success
-Pending
-Failure
- if I edit this attrib and add
Intiated
this won't work, because mariaDB has already taken the highest length ofPending
andFailure
that is 7.

Would you please create an issue for this?

tomorrow morning first thing :)


Wrong copy paste : https://github.com/appwrite/appwrite/issues/5595

@Nimit Savant While you're waiting for a fix, you can modify the attribute length by editing the field directly in the database.

oops

yes but I'll have to go into mariabDB and do that, I found a fix. I deleted the attribute and made it again

Without data you can also do that yes
Recommended threads
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: { "name": "upload-whitelist", "type"...
- Function running in cloud but not locall...
Hi everyone, I have an appwrite function which is on python3.12 runtime. I have a library (hnswlib) which builds wheels during installation. This works on appwr...
- Permissions for bulk operation
Hi team, I have a question: “In the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
