Nextcloud cannot get user list from database

Hi, sorry m pretty new to app development in Nextcloud. I am trying to get user details from the accounts database inside my application.
I made a new custom controller with accounts database on my vue js app but it is returning nothing or garbage.

Also, if I try to access it using api call:

I am getting the same error, is their any way to get a list of users in my app vue js ? Thank you