wixUser.getUser() not returning results (urgent help needed please)

I have the following code on a member page(only available when they are logged in)

console.log(‘current user is ‘+userId);
let myuserinfo = getUser(userId);
console.log(myuserinfo);
$w(’#debugtext’).text = myuserinfo.id;

In my Backend code I have the following

export function getUser(userId) {
// console.log(userId);
let UserInfo = wixUsers.getUser(userId);
console.log(‘before userinfo’)
console.log(UserInfo);
console.log(‘after userinfo’);
return UserInfo;
}

this is what I get on the debug console when running on live site.
11/14/2019, 12:02:20.675 PMcurrent user is 7ffbd8c3-22d0-47f8-a712-de18c4d9f0d9INFO11/14/2019, 12:02:20.675 PM{}INFO11/14/2019, 12:02:20.675 PMWix code SDK Warning: The text parameter of “debugtext” that is passed to the text method cannot be …WARNING11/14/2019, 12:02:20.332 PM[{“isFulfilled”:false,“isRejected”:false}]INFO11/14/2019, 12:02:20.321 PM[“before userinfo”]INFO11/14/2019, 12:02:20.313 PM[“after userinfo”]INFO

I really need to finish this project this week. I can call the new new function below to set what I need set, but I can get the current settings. In the end I need the end user to be able to set options that will update the labels attached to them.

function updateUserFields(userId: string, userInfo: UserInfo): Promise<void>

I was able to get it working. Part of my problem was that I had called the function in my backend code the same as the one I was calling. Anyway, here the the working code for those that want to know how read the labels attached to the current contact (CRM) labels.

export function button1_click(event) {
//Add your code for this event here:
console.log('current user is '+userId);
mygetUser(userId).then(userinfo => {
console.log(userinfo);
for ( var i = 0; i < userinfo.labels.length; i++) {
console.log(userinfo.labels[i]);
}
});
}

in the backend

export function mygetUser(userId) {
return wixUsers.getUser(userId);

hope this helps some of you. I saw a lot of posts by from unhappy people trying to get the contactID. This function gets some of the information that is attached to that module. Too bad they didn’t return the contactID as part of this call. It would sure make life a lot easier.