Rank 1: Thread
I am trying to get user data from cloud functions but is not working, there are no logs and no errors.
Votes
0
Replies
14
Participants
Unknown
Messages
15
Rank 1: Thread
I am trying to get user data from cloud functions but is not working, there are no logs and no errors.
Rank 1: Thread
I tried account.get() with jwt passed via payload same problem.
Rank 1: Thread
getting this response.
Admin
Can you try to convert the error to a string instead of passing the error itself?
Rank 1: Thread
showing {"error":"[object Undefined]"}
Admin
How did you convert it?
Rank 1: Thread
error: toString(error)
Admin
Can you try error.toString()?
Rank 1: Thread
Ah!
Rank 1: Thread
{"error":"Error: getaddrinfo ENOTFOUND hostname"}
Admin
There you go. That else block that sets the endpoint isn't being called
Rank 1: Thread
Thanks.
Moderator
It was your issue solved @NEETO ?
Rank 1: Thread
yes.
Moderator
[SOLVED] How to use account.get() in functions?