I have self-hosted v1.8.1 and I am using an Appwrite function with node-appwrite v22.
When I call the createVarcharColumn() in my server function I get this exception:
"AppwriteException: Route not found. Please ensure the endpoint is configured correctly and that the API route is valid for this SDK version. Refer to the API docs for more details."
Why isn't createVarcharColumn() available in 1.8.1 self-hosted?
Summary
Cloud version is ahead of self-hosted version. `1.8.1` doesn't have the new methods from Databases, so the createVarcharColumn() route is not found. Docs mention `1.8.x` but the new string types are in `1.9.0`. Endpoints exist in the `1.8.x` branch, but the `1.8.2` release was never made. A fix is incoming. For now, the workaround is to follow old sequential steps: create table > success > create columns > indexes, etc. Fix in progress - https://github.com/appwrite
Cloud is always a bit ahead of the self-hosted version. 1.8.1 doesn't have the new methods from Databases. You'll have to wait for the next SH release.
its not, not in a way. it says 1.8.x and not 1.8.1. the specs are generated from latest changes from 1.8.x branch. but agree this can cause some confusion.
They definitely are! 1.8.x absolutely includes 1.8.1, so if docs say 1.8.x then this should apply to 1.8.1 as well. In addition, the new string types are part of 1.9.0 as per the changelog: https://github.com/appwrite/appwrite/blob/1.9.x/CHANGES.md. So it is even more misleading and wrong - obviously someone was fast ans sloppy to put the 1.9.0 docs into the 1.8 branch
thank you for the update @Chirag Aggarwal . there is also this nasty bug - https://github.com/appwrite/sdk-for-node/issues/136 - not directly relating to docs but still - the docs say the createTable should work properly with columns but it doesn't. It seems this is still not being fixed