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:
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.
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>
Recommended threads
- Traefic Start Problem - Docker and Selfh...
Hello Appwrite Community, I've got some problems with installing the self-hosted appwrite server in docker. Because when I try to start the traefic service, I ...
- Can't create or update functions via CLI...
Self-hosted 1.9.5 — all function create/update return 500: Unknown attribute: "providerBranches" (metadata ↔ physical-column desync after upgrade) Env: Appwrit...
- Unable to login after upgrade to 1.9.5
I had v1.9.0 installed on a VPS without a web server installed, I followed the instructions as per the upgrade guide with the added --migrate=true arg as there ...