getMember by id returns undefined

I’m trying to fetch the name of a member to display on another members screen, but it keeps returning the name as undefined. I’ve verified that the userID being inputted is valid and that it still returns undefined even if I use that function to try and fetch the name of the currently logged in user, so it doesn’t seem to be a permissions error. I also tried using the exact function from the api documentation where it returns the whole member object and that also returned undefined. Any idea why this may be happening? Is it just not possible to show one member another members email by accessing it through the api/database?

Frontend

Backend