FetchError: invalid json response body at http://discordapp.com/api/users/@me reason: Unexpected token < in JSON at position 0
at /home/runner/nuke-protector/node_modules/node-fetch/lib/index.js:273:32
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /home/runner/nuke-protector/node_modules/discord-easy-dashboard/routes/auth.js:45:34 {
type: 'invalid-json'
}
Hey, it's a common error encountered when working with the Discord API, can you send me your code so i can look for mistakes ?
(Make sure to not send your token/clien_secret)
the auth is returning error -
FetchError: invalid json response body at http://discordapp.com/api/users/@me reason: Unexpected token < in JSON at position 0 at /home/runner/nuke-protector/node_modules/node-fetch/lib/index.js:273:32 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async /home/runner/nuke-protector/node_modules/discord-easy-dashboard/routes/auth.js:45:34 { type: 'invalid-json' }