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
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...
- My organization's project is blocked
My organization's project is blocked so unblocked my organization then I will this