TheTurkeyDev / Discord-Games

Code for my various games made using a discord bot!
MIT License
79 stars 72 forks source link

can you guys help? #23

Closed ghost closed 1 year ago

ghost commented 1 year ago

i am getting this error at the end of the game

Z:\Projects\Discord-Games\node_modules\node-fetch\lib\index.js:273
                                return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
                                                           ^
FetchError: invalid json response body at https://discord.com/api/v10/channels/1065343985679339603/messages/1087064369482960917/reactions reason: Unexpected end of JSON input
    at Z:\Projects\Discord-Games\node_modules\node-fetch\lib\index.js:273:32
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'invalid-json'
}
TheTurkeyDev commented 1 year ago

Are you getting it constantly?

ghost commented 1 year ago

Yes, I only did npx tsc & node.

TheTurkeyDev commented 1 year ago

Sorry this took me awhile to get around to. It was an error in the underlying Discord Library