While using updateStringAttribute with this params (dart sdk)
await _databases.get().updateStringAttribute(
databaseId: ...,
collectionId: ...,
key: ...,
xrequired: false,
xdefault: null,
);
I receive this error:
general_argument_invalid, Param "default" is not optional. (400)
What is the SDK version?
10.0
maybe try : xdefault: '[DEFAULT]'?
await _databases.get().updateStringAttribute(
databaseId: ...,
collectionId: ...,
key: ...,
xdefault: '', // Set a default value (e.g., empty string)
);
Also make sure that you are on latest appwrite version. Sdk 10.0 is built against 1.4.3.
oye...it would be good to create an issue for this
Recommended threads
- Error | general_unknown
I have built a website using Appwrite Cloud as backend, and also using sites for deployment. My website is live but sometimes it shows Appwrite's Error general_...
- Introducing new string column types made...
Adding new string types is hugely bennificial! Unfortunately it made the current column types not editable to change their types to the new longer field types.
- there is critical problem in this part
when user update the integer and double both get error not update or upload