Have you tried anything else with your appwrite client, like fetching documents?
no not yet
What URL are you using when initializing your client?
Can you send a snippit of your client code? Are you using environment variables?
yes im using env
import env from "@/env";
import { Client, Account, Avatars, Databases, Storage, OAuthProvider } from "appwrite";
const client = new Client()
.setEndpoint(env.appwrite.endpoint)
.setProject(env.appwrite.projectId);
const databases = new Databases(client);
const account = new Account(client);
const avatars = new Avatars(client);
const storage = new Storage(client);
export { client, databases, account, avatars, storage, OAuthProvider };
should i try printing env and see if they arent empty
yea
they are not empty
env are working fine
Can you send your env file and scrub the sensitive data
ok wait
APPWRITE_ENDPOINT="https://cloud.appwrite.io/v1" APPWRITE_PROJECT_ID="xxxxxxxxxxxxxx" APPWRITE_API_KEY="bigxxxxxxxxxxxxxxxxxxxxxx"
remove the quotes
from all of them
yea
still the same error
im using nextJS ,if there is a problem in it
Are you doing client side rendering? I believe you'll need to prefix your envs with NEXT_PUBLIC_
otherwise they're only available server side.
ohk
its working now thanks
sweet! If you have anymore issues lmk
[SOLVED] Getting an error with google auth
I have one issue , indexes doesnt get created using node-sdk https://discord.com/channels/564160730845151244/1285159140448145458
Recommended threads
- appwrite create custom recovery
How can i create custom recovery email, i.e overite the `await account.createRecovery(email, path)`
- My Explore page suddenly stopped working
The website careerquest-gcet@vercel.app has an explorepage which suddenly stopped and i am guessing that it is because appwrite cahnged some variable names so i...
- General_unauthorized_scope
Hi, I'm currently working on auth part of my app. I have user logged in and session created. When getting current user e.g `final Account account = Account(cl...