giorgi-o / SkinPeek

Awesome Valorant Discord bot to see your daily shop, night market, battlepass progression, and much more
GNU General Public License v3.0
210 stars 87 forks source link

Queue Issues -- TypeError: Cannot read properties of undefined (reading 'result') #21

Closed mistralwz closed 2 years ago

mistralwz commented 2 years ago

I am pretty sure this has something to do with queue. It's only triggered when an user is put into queue.

TypeError: Cannot read properties of undefined (reading 'result')
    at getQueueItemStatus (file:///C:/aaaa/SkinPeek-master/valorant/authQueue.js:69:43)
    at Client.<anonymous> (file:///C:/aaaa/SkinPeek-master/discord/bot.js:663:45)
TypeError: Cannot read properties of undefined (reading 'result')
    at getQueueItemStatus (file:///C:/aaaa/SkinPeek-master/valorant/authQueue.js:69:43)
    at Client.<anonymous> (file:///C:/aaaa/SkinPeek-master/discord/bot.js:629:45)
    at runNextTicks (node:internal/process/task_queues:61:5)
    at processTimers (node:internal/timers:497:9)
TypeError: Cannot read properties of undefined (reading 'result')
    at getQueueItemStatus (file:///C:/aaaa/SkinPeek-master/valorant/authQueue.js:69:43)
    at Client.<anonymous> (file:///C:/aaaa/SkinPeek-master/discord/bot.js:629:45)
Error: getaddrinfo ENOTFOUND pd.undefined.a.pvp.net
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'pd.undefined.a.pvp.net'

Looks like the bot just didn't catch the user's region...

giorgi-o commented 2 years ago

Hmm, weird. My guess is that the user hasn't launched Valorant on their account yet, only League/Wild Rift. The only way to know would be to ask the user though.

mistralwz commented 2 years ago

Hmm, weird. My guess is that the user hasn't launched Valorant on their account yet, only League/Wild Rift. The only way to know would be to ask the user though.

I'll see if someone reports this back. Cannot read properties of undefined happens once every few interactions tho.

For Error: getaddrinfo ENOTFOUND pd.undefined.a.pvp.net, it has only happened 10 times in a lifetime. I think there was indeed someone who logged into the shop checking bot... without a VALORANT account.