Web Developer
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 ??
Votes
0
Replies
24
Participants
Unknown
Messages
25
Web Developer
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 ??
Rank 1: Thread
yes!
Rank 1: Thread
i have shared my github. Can you please check if there is any error in my code?
Rank 4: Virtual Machine
your code is working on machine. i cloned it from your github repo
Rank 1: Thread
broo..😭
Rank 4: Virtual Machine
this is the only error I'm getting after fixing your env
@Dichan Do you have fixed the env?
Rank 1: Thread
then what has happened with my pc?
Rank 1: Thread
sorry.. i didn't get you
Do you have fixed what @kamal.panara said?
Rank 4: Virtual Machine
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
Rank 4: Virtual Machine
yes, it can be vite issue, because i have cloned his code from github so appwrite sdk version is same.
Rank 4: Virtual Machine
@Dichan can you show me your .env file ?
Rank 4: Virtual Machine
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
Rank 1: Thread
give me a sec
Rank 1: Thread
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
Rank 1: Thread
Rank 4: Virtual Machine
finally 😂
Rank 1: Thread
can you tell me what this 401 unauthorized is?
Rank 4: Virtual Machine
now you can catch the error and check if it's 401 unauthorized then redirect user to login page
Rank 1: Thread
Yea. Thanks brother. I have been seriously stuck for this for about a week and half
Rank 4: Virtual Machine
that means user not logged in
Rank 1: Thread
ok thanks brother