Login failed AppwriteException: Invalid document structure: Attribute "$tenant" has invalid type. Va
- 3
- Auth
- Web
- Cloud
AuthProvider.tsx:58
POST https://cloud.appwrite.io/v1/account/sessions/email 400 (Bad Request) loginHandler @ AuthProvider.tsx:58 handleSubmit @ LoginPage.tsx:30 onClick @ LoginPage.tsx:74 AuthProvider.tsx:74 Login failed AppwriteException: Invalid document structure: Attribute "$tenant" has invalid type. Value must be a valid integer at _Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=8e5c943f:490:15) at Generator.next (<anonymous>) at fulfilled (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=8e5c943f:13:24) LoginPage.tsx:35 Login failed
Everything worked yesterday, but today this error appeared
I am using: Vite + React + TypeScript Appwrite Cloud, not Self-Hosted Web SDK
"dependencies": { "@react-leaflet/core": "^3.0.0", "@tailwindcss/vite": "^4.0.11", "@types/react-date-range": "^1.4.10", "@types/react-image-gallery": "^1.2.4", "@types/validator": "^13.12.2", "appwrite": "^17.0.1", "axios": "^1.8.3", "date-fns": "^4.1.0", "dotenv": "^16.4.7", "leaflet": "^1.9.4", "rc-slider": "^11.1.8", "rc-tooltip": "^6.4.0", "react": "^19.0.0-rc.1", "react-credit-cards-2": "^1.0.3", "react-date-range": "^2.0.1", "react-dom": "^19.0.0-rc.1", "react-icons": "^5.5.0", "react-image-gallery": "^1.4.0", "react-leaflet": "^5.0.0-rc.2", "react-leaflet-cluster": "^2.1.0", "react-router-dom": "^7.2.0", "tailwindcss": "^4.0.11", "validator": "^13.12.0" }, "devDependencies": { "@eslint/js": "^9.19.0", "@types/leaflet": "^1.9.16", "@types/node": "^22.13.10", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "eslint": "^9.19.0", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.18", "globals": "^15.14.0", "typescript": "~5.7.2", "typescript-eslint": "^8.22.0", "vite": "^6.1.0" } }
Everything .env and other config files are worked correctly but i have this error
Even I have the same issue
From backend NodeJS to the same ProjectID work correctly
I think it is not our issue, they fucked up the server
I changed project ID to login in other project and everything worked
rip bro i have a presentation for my project tomorrow and my backend is fvcked
but when i changed to the same project id, i have the same error
I'm working on a term paper and I have to submit it this week
I run a Sass and my clients are thrashing me because of this
THEY FIXED
nope
still the same
strange, my error disappeared and everything work
still the same
Recommended threads
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...