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
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...