Skip to content

Server crash when .zip archive are in the logs folder #18

Closed
@T0ine34

Description

@T0ine34

traceback :

antoi@raspberry-antoine:~/gamu/server $ node start.mjs
[2024-07-02 22:35:18] [   INFO   ] [     Logger      ] initializaion complete with log level INFO
[2024-07-02 22:35:18] [ WARNING  ] No Discord token provided, Artifacts will not be archived.
[2024-07-02 22:35:18] [   INFO   ] [    WebServer    ] Server running on port 3000
file:///home/antoi/gamu/server/modules/logger/main.mjs:98
            const channel = this.discordBot.guild.channels.cache.get('1224823809266155600');
                                                  ^

TypeError: Cannot read properties of undefined (reading 'channels')
    at WriteStream.<anonymous> (file:///home/antoi/gamu/server/modules/logger/main.mjs:98:51)
    at WriteStream.emit (node:events:519:28)
    at emitCloseNT (node:internal/streams/destroy:147:10)
    at process.processTicksAndRejections (node:internal/process/task_queues:81:21)

Node.js v20.15.0

Reporter : @T0ine34
Branch : implement-argument-parser (probably main too)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginternalIssue created by staff

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions