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
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...