LakeYS / Discord-Trivia-Bot

TriviaBot: Play trivia in Discord! Powered by discord.js and OpenTDB, with 24 categories and three modes of play.
Apache License 2.0
84 stars 39 forks source link

Application closes with "Error: socket hang up" #64

Closed LakeYS closed 6 years ago

LakeYS commented 6 years ago
Discord client error 'EPIPE'. Attempting to reconnect in 6s...
(node:29085) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: Request to use token, but token was unavailable to the client.
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: socket hang up
    at createHangUpError (_http_client.js:331:15)
    at TLSSocket.socketOnEnd (_http_client.js:423:23)
    at emitNone (events.js:111:20)
    at TLSSocket.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1056:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)