Skip to content

Bug: service crashes if bot is timed out #20

@cpacker

Description

@cpacker

Seems like the crash is due to an unhandled exception around typing:

/app/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148

			throw new DiscordAPIError(data, 'code' in data ? data.code : data.error, status, method, url, requestData);

         ^

DiscordAPIError[50001]: Missing Access

    at handleErrors (/app/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148:10)

    at processTicksAndRejections (node:internal/process/task_queues:95:5)

    at async SequentialHandler.runRequest (/app/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:417:20)

    at async SequentialHandler.queueRequest (/app/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:169:11)

    at async _REST.request (/app/node_modules/@discordjs/rest/src/lib/REST.ts:210:20)

    at async TextChannel.sendTyping (/app/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:203:5)

    at async Client.<anonymous> (/app/src/server.ts:151:5) {

  requestBody: { files: undefined, json: undefined },

  rawError: { message: 'Missing Access', code: 50001 },

  code: 50001,

  status: 403,

  method: 'POST',

  url: 'https://discord.com/api/v10/channels/.../typing';

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions