Skip to content
Back

Function deploy not working "invalid document structure"

  • 0
  • 2
  • Self Hosted
9 Jul, 2026, 20:33

When I do appwrite push function it ends with error creating function rule. My instance is self hosted 1.9.5 and when the error happens docker logs this:

TypeScript
appwrite  | http.request · 17.3ms · 09bc0697
appwrite  |
appwrite  |   level              error
appwrite  |   http.method        POST
appwrite  |   http.path          /v1/proxy/rules/function
appwrite  |   http.response.code 500
appwrite  |
appwrite  |   Utopia\Database\Exception\Structure: Invalid document structure: Unknown attribute: "owner"
appwrite  |     at /usr/src/code/vendor/utopia-php/database/src/Database/Database.php:5654
appwrite  |     at /usr/src/code/src/Appwrite/Platform/Modules/Proxy/Action.php:30
appwrite  |     at /usr/src/code/vendor/utopia-php/database/src/Database/Validator/Authorization.php:177
appwrite  |     at /usr/src/code/src/Appwrite/Platform/Modules/Proxy/Action.php:30
appwrite  |     ... 7 more
appwrite  |
appwrite  | ────────────────────────────────────────────────────────────

Before I got the same error as discussed in this thread https://discord.com/channels/564160730845151244/1522114393179947018

Cli is up to date. Function is written in dart.

TL;DR
Issue with "invalid document structure" error during function deploy. Suggested checking for schema/version mismatch in the self-hosted instance and proxy collections sync. Direct debugging support available.
9 Jul, 2026, 23:19

That Unknown attribute: "owner" error looks more like a schema/version mismatch in the self-hosted instance than an issue with your Dart function or the CLI. I'd check whether the 1.9.5 migration completed successfully and whether the proxy collections are in sync. I can help you debug it directly if you'd like. Did this start right after upgrading, or has this instance been on 1.9.5 from the beginning? <@1042918908887318578>

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more