
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
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
- Is it possible to cancel an ongoing file...
When uploading a file to storage, is there a way to cancel the upload in progress so the file is not saved or partially stored?
