Skip to content
Back

Login failed AppwriteException: Invalid document structure: Attribute "$tenant" has invalid type. Va

  • 3
  • Auth
  • Web
  • Cloud
zennix9933
30 Mar, 2025, 10:29

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" } }

TL;DR
zennix9933
30 Mar, 2025, 10:30

Everything .env and other config files are worked correctly but i have this error

jokernifty
30 Mar, 2025, 10:44

Even I have the same issue

zennix9933
30 Mar, 2025, 10:49

From backend NodeJS to the same ProjectID work correctly

jokernifty
30 Mar, 2025, 10:50

I think it is not our issue, they fucked up the server

zennix9933
30 Mar, 2025, 10:51

I changed project ID to login in other project and everything worked

azi
30 Mar, 2025, 10:51

rip bro i have a presentation for my project tomorrow and my backend is fvcked

zennix9933
30 Mar, 2025, 10:52

but when i changed to the same project id, i have the same error

zennix9933
30 Mar, 2025, 10:53

I'm working on a term paper and I have to submit it this week

jokernifty
30 Mar, 2025, 10:56

I run a Sass and my clients are thrashing me because of this

zennix9933
30 Mar, 2025, 10:56

THEY FIXED

jokernifty
30 Mar, 2025, 10:57

nope

jokernifty
30 Mar, 2025, 10:57

still the same

zennix9933
30 Mar, 2025, 10:58

strange, my error disappeared and everything work

jokernifty
30 Mar, 2025, 10:59

still the same

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