Inconsistent of fetching discord profile by discord id (v3.5.6)
eksqtr opened this issue · comments
Anyone encountered inconsistent of DCC_GetUserId from samp-discord-connector v0.3.6? (https://github.com/maddinat0r/samp-discord-connector/releases)
Discord Find by ID: 256968947667173376 | Oppai#6450 | pDiscord: 4787
after few minutes it become
Discord Find by ID: 870180867031592981 | rjay#7629 | pDiscord: 4787
sometimes it's empty
Discord Find by ID: | # | pDiscord: 4787
then it fetch random discord find by id
Discord Find by ID: 1048291210374160395 | Yuki Wong#0650 | pDiscord: 4787
code:
enum E_PDATA {
DCC_User:pDiscord
}
new PlayerInfo[MAX_PLAYERS][E_PDATA];
// Loaded from the database
cache_get_field_content(row, "Discord", szResult, MainPipeline, DCC_ID_SIZE); PlayerInfo[extraid][pDiscord] = DCC_FindUserById(szResult);
new discord_Dest[DCC_ID_SIZE];
DCC_GetUserId(PlayerInfo[extraid][pDiscord], discord_Dest);
printf("Discord Find by ID: %s | %s | pDiscord: %d", discord_Dest, GetDiscordNameEx(PlayerInfo[extraid][pDiscord]), _:PlayerInfo[extraid][pDiscord]);
Then I'm getthis these log info from discord-connector.txt
[5/6/2023 3:36:16 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:36:16 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:36:17 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:36:17 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:36:21 AM] [ERROR] can't update guild member presence: user id "610198885499142177" not cached
[5/6/2023 3:36:25 AM] [ERROR] can't update guild member presence: user id "799988421896044545" not cached
[5/6/2023 3:37:12 AM] [ERROR] Can't write to Discord websocket gateway: The I/O operation has been aborted because of either a thread exit or an application request (995)
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:35 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:36 AM] [WARNING] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
[5/6/2023 3:37:38 AM] [ERROR] can't update guild member presence: user id "1053393653864878170" not cached
From errors.txt
[5/6/2023 3:33:15 AM] [plugins/discord-connector] DCC_GetUserDiscriminator: invalid user id '4787'
[5/6/2023 3:33:15 AM] [plugins/discord-connector] DCC_GetUserName: invalid user id '4787'
[5/6/2023 3:33:15 AM] [plugins/discord-connector] DCC_GetUserId: invalid user id '4787'
[5/6/2023 3:33:15 AM] [plugins/discord-connector] DCC_GetUserDiscriminator: invalid user id '4787'
[5/6/2023 3:33:15 AM] [plugins/discord-connector] DCC_GetUserName: invalid user id '4787'
[5/6/2023 3:34:29 AM] [plugins/discord-connector] can't update guild member presence: user id "288337931620319232" not cached
[5/6/2023 3:34:30 AM] [plugins/discord-connector] Can't write to Discord websocket gateway: The I/O operation has been aborted because of either a thread exit or an application request (995)
[5/6/2023 3:35:51 AM] [plugins/discord-connector] Can't write to Discord websocket gateway: The I/O operation has been aborted because of either a thread exit or an application request (995)
[5/6/2023 3:36:21 AM] [plugins/discord-connector] can't update guild member presence: user id "610198885499142177" not cached
[5/6/2023 3:36:25 AM] [plugins/discord-connector] can't update guild member presence: user id "799988421896044545" not cached
[5/6/2023 3:37:12 AM] [plugins/discord-connector] Can't write to Discord websocket gateway: The I/O operation has been aborted because of either a thread exit or an application request (995)
[5/6/2023 3:37:38 AM] [plugins/discord-connector] can't update guild member presence: user id "1053393653864878170" not cached
[5/6/2023 3:38:33 AM] [plugins/discord-connector] Can't write to Discord websocket gateway: The I/O operation has been aborted because of either a thread exit or an application request (995)
From warnings.txt
[5/6/2023 3:38:56 AM] [plugins/discord-connector] Unknown gateway event 'GUILD_MEMBERS_CHUNK'
Bump
Having this too.