luzede
luzede
DIAdiscord.js - Imagine an app
Created by luzede on 6/17/2024 in #djs-questions
client.on() not handling/accepting requests when awaiting response from SQLite when it is busy
Thank you, that really helped, for now setting timeout to something less than 1 second will work for me. In the future I will at least know to use an asynchronous database. ❤️
7 replies
DIAdiscord.js - Imagine an app
Created by luzede on 6/17/2024 in #djs-questions
client.on() not handling/accepting requests when awaiting response from SQLite when it is busy
await interaction.deferReply({ ephemeral: false }); This does not run during those 5 seconds when I send a new slash command request, and because 3 seconds already pass, it fails when it starts handling after 5 seconds because it got expired
7 replies
DIAdiscord.js - Imagine an app
Created by luzede on 6/17/2024 in #djs-questions
client.on() not handling/accepting requests when awaiting response from SQLite when it is busy
It is inside try catch block and when the first event handler runs, it reports after 5 seconds
There was an error while banning the user.
SQLITE_BUSY
There was an error while banning the user.
SQLITE_BUSY
And during those 5 seconds, more calls are not handled by the handler
7 replies
DIAdiscord.js - Imagine an app
Created by luzede on 6/17/2024 in #djs-questions
client.on() not handling/accepting requests when awaiting response from SQLite when it is busy
I use DB Browser for SQLite, portable program to lock the database and make it busy, but I don't want that to stop event handlers from executing, I want the handlers to execute and report that there was an error with the database.
7 replies