Have you tried anything else with your appwrite client, like fetching documents?
[SOLVED] Getting an error with google auth
Votes
1
Replies
24
Participants
Unknown
Messages
25
Rank 1: Thread
no not yet
What URL are you using when initializing your client?
Rank 1: Thread
Can you send a snippit of your client code? Are you using environment variables?
Rank 1: Thread
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 };
Rank 1: Thread
should i try printing env and see if they arent empty
yea
Rank 1: Thread
they are not empty
Rank 1: Thread
env are working fine
Can you send your env file and scrub the sensitive data
Rank 1: Thread
ok wait
Rank 1: Thread
APPWRITE_ENDPOINT="https://cloud.appwrite.io/v1"
APPWRITE_PROJECT_ID="xxxxxxxxxxxxxx"
APPWRITE_API_KEY="bigxxxxxxxxxxxxxxxxxxxxxx"
remove the quotes
Rank 1: Thread
from all of them
yea
Rank 1: Thread
still the same error
Rank 1: Thread
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.
Rank 1: Thread
ohk
Rank 1: Thread
its working now thanks
sweet! If you have anymore issues lmk
[SOLVED] Getting an error with google auth
Rank 1: Thread
I have one issue , indexes doesnt get created using node-sdk
https://discord.com/channels/564160730845151244/1285159140448145458