
These are all my codes. I am having several errors. And also i have integrated in appwrite. I am a beginner in it so can anybody help me ? @Dennis Ivy ??

yes!

i have shared my github. Can you please check if there is any error in my code?

your code is working on machine. i cloned it from your github repo

broo..😭

this is the only error I'm getting after fixing your env

@Dichan Do you have fixed the env?

then what has happened with my pc?

sorry.. i didn't get you

Do you have fixed what @kamal.panara said?

also you can fix this by adding catch
while calling getCurrentUser()

I think it could be caused due to an old SDK version being used

Or old (vite I think) version

yes, it can be vite issue, because i have cloned his code from github so appwrite sdk version is same.

@Dichan can you show me your .env file ?

your .env file should look like this:
VITE_APPWRITE_URL=https://cloud.appwrite.io/v1
VITE_APPWRITE_PROJECT_ID=65b3b12a1391d0bfea6c
VITE_APPWRITE_DATABASE_ID=65b3b205507b1b098fbb
VITE_APPWRITE_COLLECTION_ID=65b3b23d416cb8dba691
VITE_APPWRITE_BUCKET_ID=65b3b3e5d53648a10ca7

give me a sec

I have done VITE_APPWRITE_URL_PROJECT_ID so it was creating issue but now i have made it to VITE_APPWRITE_PROJECT_ID and it showed the following in my console. Like actually thank you guys for helping me


finally 😂

can you tell me what this 401 unauthorized is?

now you can catch the error and check if it's 401
unauthorized then redirect user to login page

Yea. Thanks brother. I have been seriously stuck for this for about a week and half

that means user not logged in

ok thanks brother
Recommended threads
- Dashboard not loading
i am unable to see my database tables. when i click on a databse to view tables and rows my screen just keep loading. somehow if i exit form that page then othe...
- Sam AWS CLI x Appwrite
Hello, I have a problem with my functions from Appwrite. Currently, we use AWS SAM CLI to simulate an API Gateway with Lambdas, where the client is initiated...
- [SOLVED] Running into error 400 when lin...
I cant find the create collection under database, all I see is create tables and this is affecting my react app
