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

Before Session Timeout Hook Not Triggering When timeoutInterval Exceeds 1 Minute #1833

Open
bielvelozo opened this issue Jun 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bielvelozo
Copy link

Describe the bug
I'm running Botpress in production on Heroku and have connected it to a PostgreSQL database. I'm experiencing an issue where the before_session_timeout hook does not trigger if the timeoutInterval value is set to more than 1 minute.

To Reproduce
Steps to reproduce the behavior:

  1. Create a before_session_timeout hook
  2. Add a bp.logger.debug or console.log (whatever really just to get confirmation it was invoked or not)
  3. Start a conversation
  4. Let the conversation timeout (set the configuration to 2 minutes or greater)
  5. Check the DB table dialog_sessions for confirmation the session was cleared (row deleted)
  6. You see no logs confirming the execution of the hook

Expected behavior
If the timeout is greater than 1 minute, no event should appear in the logs after "waiting until next event"

Screenshots
botpress.config.json:
image
bot.config.json:
image

Environment:

  • OS: Windows 11 Pro 23H2
  • Browser Chrome
  • Browser Version 126.0.6478.63
  • Botpress Version 12.31.8

Additional context

  • When testing locally with SQLite, the before_session_timeout hook works as expected even with timeoutInterval values greater than 1 minute.

Is there any configuration I might be missing or any known issues related to this? Any help or guidance would be greatly appreciated.

@bielvelozo bielvelozo added the bug Something isn't working label Jun 21, 2024
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

1 participant