Tatatofly / Discordbot-Shiro

DiscordBot WiP with JavaScript powered by Node.JS
https://tatato.fi
MIT License
1 stars 2 forks source link

BUG: HTTPError [FetchError]: request to https://discord.com/api/v9/channels/867827340712214538/messages failed, reason: read ECONNRESET #46

Open Tatatofly opened 3 years ago

Tatatofly commented 3 years ago
/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/rest/RequestHandler.js:172
        throw new HTTPError(error.message, error.constructor.name, error.status, request);
              ^

HTTPError [FetchError]: request to https://discord.com/api/v9/channels/867827340712214538/messages failed, reason: read ECONNRESET
    at RequestHandler.execute (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/rest/RequestHandler.js:172:15)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
    at async TextChannel.send (/home/tatu/Discordbot-Shiro/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:171:15) {
  code: 500,
  method: 'post',
  path: '/channels/867827340712214538/messages',
  requestData: {
    json: {
      content: undefined,
      tts: false,
      nonce: undefined,
      embeds: undefined,
      components: undefined,
      username: undefined,
      avatar_url: undefined,
      allowed_mentions: undefined,
      flags: undefined,
      message_reference: undefined,
      attachments: undefined,
      sticker_ids: undefined
    },
    files: [
      {
        attachment: 'https://api-cdn.rule34.xxx/images/1410/6c85949caba20aebedd6e449c021078843258ac3.png',
        name: '6c85949caba20aebedd6e449c021078843258ac3.png',
        file: PassThrough {
          _readableState: ReadableState {
            objectMode: false,
            highWaterMark: 16384,
            buffer: [BufferList],
            length: 0,
            pipes: [],
            flowing: true,
            ended: false,
            endEmitted: false,
            reading: true,
            constructed: true,
            sync: false,
            needReadable: true,
            emittedReadable: false,
            readableListening: false,
            resumeScheduled: false,
            errorEmitted: false,
            emitClose: true,
            autoDestroy: true,
            destroyed: false,
            errored: null,
            closed: false,
            closeEmitted: false,
            defaultEncoding: 'utf8',
            awaitDrainWriters: null,
            multiAwaitDrain: false,
            readingMore: false,
            dataEmitted: true,
            decoder: null,
            encoding: null,
            [Symbol(kPaused)]: false
          },
          _events: [Object: null prototype] {
            prefinish: [Function: prefinish],
            unpipe: [Function: onunpipe],
            error: [Array],
            close: [Function],
            finish: [Function],
            data: [Array]
          },
          _eventsCount: 6,
          _maxListeners: undefined,
          _writableState: WritableState {
            objectMode: false,
            highWaterMark: 16384,
            finalCalled: false,
            needDrain: false,
            ending: false,
            ended: false,
            finished: false,
            destroyed: false,
            decodeStrings: true,
            defaultEncoding: 'utf8',
            length: 0,
            writing: false,
            corked: 0,
            sync: false,
            bufferProcessing: false,
            onwrite: [Function: bound onwrite],
            writecb: null,
            writelen: 0,
            afterWriteTickInfo: null,
            buffered: [],
            bufferedIndex: 0,
            allBuffers: true,
            allNoop: true,
            pendingcb: 0,
            constructed: true,
            prefinished: false,
            errorEmitted: false,
            emitClose: true,
            autoDestroy: true,
            errored: null,
            closed: false,
            closeEmitted: false,
            [Symbol(kOnFinished)]: []
          },
          allowHalfOpen: true,
          emit: [Function (anonymous)],
          [Symbol(kCapture)]: false,
          [Symbol(kCallback)]: null
        }
      }
    ]
  }
}