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
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...