I am trying to get user data from cloud functions but is not working, there are no logs and no errors.
I tried account.get() with jwt passed via payload same problem.
getting this response.
Can you try to convert the error to a string instead of passing the error itself?
showing {"error":"[object Undefined]"}
How did you convert it?
error: toString(error)
Can you try error.toString()?
Ah!
{"error":"Error: getaddrinfo ENOTFOUND hostname"}
There you go. That else block that sets the endpoint isn't being called
Thanks.
It was your issue solved @NEETO ?
yes.
[SOLVED] How to use account.get() in functions?
Recommended threads
- Emails not coming
I'm building a simple web app that registers users with an email and password. The user is created successfully in my (auth) page, but the verification email is...
- Verification failed
I am unable to connect custom domain. it keeps on verifying and when i refresh it says verification failed. I bought my domain from hostinger. my instance is r...
- Unable to login to site using appwrite ...
Hi, i made a website using appwrite google authentication and db. And it was working fine for few days. But now google login doesn't work. Its not showing any e...