Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Timed out during query execution #570

Open
1 task done
JHubi1 opened this issue Nov 26, 2024 · 1 comment
Open
1 task done

[BUG] Timed out during query execution #570

JHubi1 opened this issue Nov 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@JHubi1
Copy link

JHubi1 commented Nov 26, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Sometimes the bot sends a message "⚠️ Something went wrong" and the console shows the following output:

 26/11/24 21:05:59  [ERROR] (PRISMA) ticket.update 
Invalid `prisma.ticket.update()` invocation:
Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: ConnectionError(Timed out during query execution.), transient: false })
 26/11/24 21:05:59  [ERROR] (BUTTONS) 67463837M0
 26/11/24 21:05:59  [ERROR] (MODALS) "feedback" modal execution error: PrismaClientUnknownRequestError: 
Invalid `prisma.ticket.update()` invocation:
Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: ConnectionError(Timed out during query execution.), transient: false })
    at Rn.handleRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:7499)
    at Rn.handleAndLogRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:6754)
    at Rn.request (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:6344)
    at async module.exports (/app/src/lib/middleware/prisma-sqlite.js:44:15)
    at async FeedbackModal.run (/app/src/modals/feedback.js:34:18) {
  clientVersion: '4.16.2'
}

Expected Behavior

Working

Steps To Reproduce

Could not reliably reproduce. But often happens when using the /claim and /close command (which soft locks the ticket)

Environment

- OS: Docker image

Anything else?

I use the sqlite database, because it's easier for me to manage

@JHubi1 JHubi1 added the bug Something isn't working label Nov 26, 2024
@eartharoid
Copy link
Member

This might indicate that your bot is too active for SQLite to keep up, and you should switch to MySQL or PostgreSQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants