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
- [Sites] Deployment finished but site is ...
The deployment finished and is active but the site shows timeout error.
- Does Appwrite allow SSE ?
i'm trying to setup a slack bot on my site. Your deployed SSE endpoint is returning a non‑SSE response …and the browser immediately closes the connection. read...
- Function executions fail with cURL error...
Appwrite version: 1.8.0 Executor version: 0.11.4 Function runtime: Python 3.12 SELF-HOSTED Function executions that occur at the same moment as the executor's ...