appujet / lavamusic

lavalink music bot base in lavalink-client and discord.js v14
https://appujet.github.io/lavamusic/
GNU General Public License v3.0
574 stars 490 forks source link

slashhandler #386

Closed pasindu20 closed 1 year ago

pasindu20 commented 1 year ago

Bug description

why slashhandler give this error

Operating system

win8

Nodejs version

16.15.1

Errors / Logs

HTTPError: Internal Server Error
    at SequentialHandler.runRequest (C:\Users\user\Desktop\test\node_modules\@discordjs\rest\dist\index.js:652:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SequentialHandler.queueRequest (C:\Users\user\Desktop\test\node_modules\@discordjs\rest\dist\index.js:458:14)
    at async REST.request (C:\Users\user\Desktop\test\node_modules\@discordjs\rest\dist\index.js:902:22)
    at async C:\Users\user\Desktop\test\src\handlers\slashcommand.js:36:7 {
  requestBody: {
    files: undefined,
    json: [
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object], [Object],
      [Object], [Object], [Object], [Object]
    ]
  },

  status: 500,
  method: 'PUT',
  url: 'https://discord.com/api/v10/applications/id/commands'
}
LucasB25 commented 1 year ago

Use node 18

pasindu20 commented 1 year ago

issue has been resolved