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
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...