Closed Sureiyaaa closed 3 years ago
Everytime I'm going to use getUserInfo this error pops up
Hi, can you:
--enable-source-maps
attribute when you execute your program? So we can get more detailed information.Thank you
Node.js Version: v16.7.0
I added the --enable-source-maps what will I do now?
I tried to run:
this.client.genshin.getUserInfo("800151827").then(console.log, console.error)
And I get this error:
TypeError: Cannot destructure property 'query' of 'undefined' as it is undefined.
at GenshinKit._getDS (/home/sureiya/CCG/node_modules/genshin-kit/lib/module/_getDS.js:10:19)
at GenshinKit._getHttpHeaders (/home/sureiya/CCG/node_modules/genshin-kit/lib/module/_getHttpHeaders.js:12:26)
at GenshinKit.request (/home/sureiya/CCG/node_modules/genshin-kit/lib/module/request.js:20:23)
at GenshinKit.getUserInfo (/home/sureiya/CCG/node_modules/genshin-kit/lib/index.js:91:33)
at eval (eval at exec (/home/sureiya/CCG/Commands/Owner/Evalutate.js:38:20),
Bug found: os request is missing params.
We are working on this issue. But it's midnight here. We will fix it in the morning.
@AlPha5130 Need your help. Can you compile the latest code for testing?
Thank you for looking this up I'll wait for the fix 👌
There seems to be some other problems (not related to this topic though).
ohh I hope you guys get to fix it good luck! and Thank you!
Alright is the genshin-kit in npm.js site updated?
genshin-kit@2.4.1
now released
function _getDS({ query, body }) { ^
TypeError: Cannot destructure property 'query' of 'undefined' as it is undefined. at GenshinKit._getDS (/home/sureiya/CCG/node_modules/genshin-kit/lib/module/_getDS.js:10:19) at GenshinKit._getHttpHeaders (/home/sureiya/CCG/node_modules/genshin-kit/lib/module/_getHttpHeaders.js:12:26) at GenshinKit.request (/home/sureiya/CCG/node_modules/genshin-kit/lib/module/request.js:20:23) at GenshinKit.getSpiralAbyss (/home/sureiya/CCG/node_modules/genshin-kit/lib/index.js:167:33) at GenshinKit.getCurrentAbyss (/home/sureiya/CCG/node_modules/genshin-kit/lib/index.js:204:21) at eval (eval at exec (/home/sureiya/CCG/Commands/Owner/Evalutate.js:38:20),:1:21)
at EvaluateCommand.exec (/home/sureiya/CCG/Commands/Owner/Evalutate.js:38:20)
at CommandHandler.runCommand (/home/sureiya/CCG/node_modules/discord-akairo/src/struct/commands/CommandHandler.js:768:39)
at CommandHandler.handleDirectCommand (/home/sureiya/CCG/node_modules/discord-akairo/src/struct/commands/CommandHandler.js:439:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)