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
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...