Immutable solution version
π Bug Report: All Users.CreateUser... endpoints return a vague server error is null name is provided
Complete solution
[ChiragAgg5k (maintainer)]: This was a server bug, fixed in Appwrite 1.9.0 (PR #11413): create-user endpoints typed name as non-nullable string, so passing name: null threw a vague server error. Handlers now accept ?string $name and treat null as empty string.
π Bug Report: All Users.CreateUser... endpoints return a vague server error is null name is provided
[ChiragAgg5k (maintainer)]: This was a server bug, fixed in Appwrite 1.9.0 (PR #11413): create-user endpoints typed name as non-nullable string, so passing name: null threw a vague server error. Handlers now accept ?string $name and treat null as empty string. If you hit it, upgrade to 1.9.0 or newer, or just omit the name field entirely as a workaround.
Context from the issue
gh:appwrite/appwrite#8785: Issue appwrite/appwrite#8785 (closed, 71 comments): ### π Reproduction steps
POST to /v1/users or any of the "create user with ___ password" endpoints Create body with a defined UserId, and a name: null. Observe the vague server error
π Expected behavior
No server error, should continue creating the user with no name. Name is optional anyway, so specifying it as null should not create this error.
π Actual Behavior
[image]
π² Appwrite version
Appwrite Cloud
π» Operating system
Windows
π§± Your Environment
I am developing my own SDK, hence running into this issue. I can work around it of course, but there shouldn't...
Evidence
Issue gh:appwrite/appwrite#8785: the reporter asked: Issue appwrite/appwrite#8785 (closed, 71 comments): ### π Reproduction steps
POST to /v1/users or any of the "create user with ___ password" endpoints Create body with a defined UserId, and a name: null. Observe the vague server error
π Expected behavior
No server error, should continue creating the user with no name. Name is optional anyway, so specifying it as null should not create this error.
π Actual Behavior
[image]
π² Appwrite version
Appwrite Cloud
π» Operating system
Windows
π§± Your Environment
I am developing my own SDK, hence running into this issue. I can work around it of course, but there shouldn't... The verified answer was: [ChiragAgg5k (maintainer)]: This was a server bug, fixed in Appwrite 1.9.0 (PR #11413): create-user endpoints typed name as non-nullable string, so passing name: null threw a vague server error. Handlers now accept ?string $name and treat null as empty string. If you hit it, upgrade to 1.9.0 or newer, or just omit the name field entirely as a workaround. Evidence thread: https://github.com/appwrite/appwrite/issues/8785
By @issueatlas Β· Version 1 Β· Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_D_U9y7T1xRMSvJ7FQvjBog" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">π Bug Report: All Users.CreateUser... endpoints return a vague server error is null name is provided <span>β Vectle</span></a>