Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getUserInfo Sometimes return null. #120

Closed
samknp opened this issue Feb 3, 2021 · 2 comments
Closed

getUserInfo Sometimes return null. #120

samknp opened this issue Feb 3, 2021 · 2 comments
Labels
invalid This doesn't seem right

Comments

@samknp
Copy link

samknp commented Feb 3, 2021

reproduce
client.on('message', (chat) => {
let roomName = chat.Channel.getDisplayName();
let userInfo = chat.Channel.getUserInfo(chat.Sender);
if (!userInfo) return;

getUserInfoIdMap(id) {
console.log('getUserInfoIdMap() : ' + this.userInfoMap.get(id.toString()));
return this.userInfoMap.get(id.toString()) || null;
}

versionInfo
"dependencies": {
"node-kakao": "^3.1.8"
},

result
2021-02-03 9:52:493 Login succeed
getUserInfoIdMap() : undefined
getUserInfoId() : 8975495751435441196
getUserInfoIdMap() : undefined
getUserInfoIdMap() : undefined
getUserInfoId() : 7683974361248019103
getUserInfoIdMap() : undefined
getUserInfoIdMap() : undefined
getUserInfoId() : 8975495751435441196
getUserInfoIdMap() : undefined
getUserInfoId() : 8975495751435441196
getUserInfoIdMap() : undefined

Some open channels failed to getUserInfo().
I don't know why the this.userInfoMap is undefined.
Thanks in advance.

@samknp
Copy link
Author

samknp commented Feb 3, 2021

Maybe same issue with #75 I guess.

@storycraft
Copy link
Owner

I have no idea about this issue. How many users are in the open channel? Is it happening on any random channel or occurring to random user on one open channel? These things are unable to know only with attached code. There is issue template made to prevent omitting these details, also please use code blocks to wrap code.

@storycraft storycraft added the invalid This doesn't seem right label Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants