Closed benetherington closed 2 years ago
/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/jsonwebtoken/verify.js:53
return done(new JsonWebTokenError('jwt must be provided'));
^
JsonWebTokenError: jwt must be provided
at Object.module.exports [as verify] (/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/jsonwebtoken/verify.js:53:17)
at verifyToken (/app/src/sqlite/admin.js:94:30)
at module.exports.getAdminByToken (/app/src/sqlite/admin.js:120:19)
at module.exports.getAdminFromTokenOrRedirect (/app/src/routes/loginUtilities.js:9:25)
at Object.<anonymous> (/app/src/routes/monitor.js:20:9)
at preHandlerCallback (/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/fastify/lib/handleRequest.js:126:28)
at preValidationCallback (/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/fastify/lib/handleRequest.js:109:5)
at handler (/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/fastify/lib/handleRequest.js:72:7)
at handleRequest (/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/fastify/lib/handleRequest.js:20:5)
at runPreParsing (/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/fastify/lib/route.js:451:5)
.env: line 5: T!@D@u!zBoMSQV: command not found
.env: line 5: H44: command not found
{"level":30,"time":1649616513220,"pid":956,"hostname":"9ee5b78063a2","reqId":"req-3y5","res":{"statusCode":200},"responseTime":1.9481773376464844,"msg":"request completed"}
/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/discord.js/src/rest/RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Invalid Form Body
components[0].components[0].custom_id: A custom id is required
components[0].components[1].custom_id: A custom id is required
components[0].components[2].custom_id: A custom id is required
components[0].components[3].custom_id: A custom id is required
components[0].components[4].custom_id: A custom id is required
at RequestHandler.execute (/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
at async ButtonInteraction.update (/rbd/pnpm-volume/1c3f4846-cb24-4db9-9b9d-30d0fb6a0f60/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:214:5) {
method: 'post',
path: '/interactions/962786180133445642/aW50ZXJhY3Rpb246OTYyNzg2MTgwMTMzNDQ1NjQyOmQ5QVJaM0VDNk5RakdaZ1UyYk5yd1R1amp6ZXBVQ0Y0cnNBcVUzTm81TVdrNUcwYlhvbjludTVhTWxtdUw4NFdxV2x0S1REd0VnMkNJd0FGOG44YVhqWWVmWnZnV1JsZ0RmUUh1cVN5Z0VBZ0x1VThlbmdaeFlJUm1jU3VvczRI/callback',
code: 50035,
httpStatus: 400,
requestData: {
json: {
type: 7,
data: {
content: undefined,
tts: false,
nonce: undefined,
embeds: undefined,
components: [ { components: [Array], type: 1 } ],
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined
}
},
files: []
}
}
.env: line 5: T!@D@u!zBoMSQV: command not found
.env: line 5: H44: command not found
SQLite
Wouldja look at that, glitch is happy to log partial contents of .env, even when they're syntactically correct and interpreted properly elsewhere. Those are parts of one of the auth secrets.
Opened bugvix/#30
, but was unable to reproduce. However, 95c290591d957a854676a5f6827169ebc8c4bd6f was the result of a change to permissions requirements in the Discord API. This will be cherry-picked into main
.
Incomplete log. Crashes server.