
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
- Images not showing up --
so i made this movie app - i hosted it successfully using appwrite but the images arent showing up --- https://movie-app-jsm.appwrite.network/ this is the movie...
- What’s the current approach for always o...
Read that it’s not a thing out of the box, but what’s the possible setup here?
- Cannot add/update array field
How do I add or update the rows, How exactly to pass properties? (see provided image)
