Back

[SOLVED] Appwrite Database Issue

  • 0
  • Databases
  • Auth
indranil0566
10 Sep, 2024, 14:13

I am having an error with project ID. Can anyone resolve this issue?

TL;DR
[Support Thread] - Developer encountering an error with the Appwrite Database. - Confusion with environment variables in conf.js file. - Solution: Use correct environment variable `VITE_APPWRITE_PROJECT_ID` instead of `VITE_PROJECT_ID`.
Kenny
10 Sep, 2024, 14:17

You're using the wrong env variable when setting up your conf object.

Kenny
10 Sep, 2024, 14:17

Looks like in your .env it's VITE_APPWRITE_PROJECT_ID, but you're trying to use VITE_PROJECT_ID in your conf.js file.

Kenny
10 Sep, 2024, 14:18

Looks like you'll have the same issue with all your variables, btw.

indranil0566
10 Sep, 2024, 14:26

I corrected that error,

indranil0566
10 Sep, 2024, 14:26

Now I am having this kind of error

Kenny
10 Sep, 2024, 14:30

If your user isn't authenticated, I believe this is what is expected to throw when using account.get().

indranil0566
10 Sep, 2024, 14:41

Ok Ok Thank you very much. let me build login sign up forms then probably I will be able to see if it is working fine after successful login and authentication

Kenny
10 Sep, 2024, 14:54

[SOLVED] Appwrite Database Issue

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