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
- Google login on mobile not working
Hi the gg login auth in mobile not working. No error show. But the user couldnt login in Attached is the video. Desktop is working well and im using custom doma...
- Appwrite docs mcp server 502 bad gateway
I added the appwrite docs mcp server to vscode following the docs https://appwrite.io/docs/tooling/mcp/vscode#step-1 but upon start it gives the following error...
- Appwrite 1.8.1 TablesDB Permissions Issu...
Hi - I'm migrating a newer VueJS web application from Supabase to Appwrite. I'm looking for an experienced Appwrite Developer to help me solve a permissions iss...