I use discord.js v13. the error occurs when authorizing the bot client. At first I thought that this was a Discord limitation, but technical support could not help me with anything. I assume that the problem is in my software. It should be noted that previously everything worked perfectly.
Everything is fine with the token.
throw new HTTPError(error.message, error.constructor.name, error.status, request);
^
HTTPError [FetchError]: request to https://discord.com/api/v9/gateway/bot failed, reason: self signed certificate in certificate chain
at RequestHandler.execute (C:UsersTDubbingOneDriveРабочий столDiscordПроектыEngineerBotnode_modulesdiscord.jssrcrestRequestHandler.js:200:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (C:UsersTDubbingOneDriveРабочий столDiscordПроектыEngineerBotnode_modulesdiscord.jssrcrestRequestHandler.js:50:14)
at async WebSocketManager.connect (C:UsersTDubbingOneDriveРабочий столDiscordПроектыEngineerBotnode_modulesdiscord.jssrcclientwebsocketWebSocketManager.js:133:9)
at async Client.login (C:UsersTDubbingOneDriveРабочий столDiscordПроектыEngineerBotnode_modulesdiscord.jssrcclientClient.js:245:7) {
code: 500,
method: 'get',
path: '/gateway/bot',
requestData: { json: undefined, files: [] }
}