Rank 3: Container
I think the client isn't initializing. I've added appwrite endpoint, project_id, and api_key. the project_id automatically comes from the request variable, endpoint & api_key are two that I've manually added from my appwrite console.
endpoint => https://localhost/v1
api_key => that I got from the API tab
I noticed the doc says that I need to use my public ip instead of https://localhost/v1 in case of cloud functions. but tbh, I don't really know what they mean by "public ip". we can find the same page on 127.0.0.1 as well. Do they want me to use https://127.0.0.1/v1 instead? if yes, then I'm not logged in there. and I also forgot my password ( i don't think we have any way to recover passwords in development mode )
I've added the code where I'm trying to access my DB and also the log of my function execution.
That's all I have. I'm not sure what I'm doing wrong. I'm new to Appwrite. So if anyone can help, that'll be appreciated.
NOTE: I'm on a Node env