Skip to content

Discord Bot 404s on Interaction(v2.1.7) #68

@DevDino

Description

@DevDino

Discord Bot 404s on Interaction & Restart Loop (v2.1.7)

Describe the bug
Requestrr (v2.1.7) running in Docker is experiencing issues with its Discord bot functionality:

  1. Discord Bot Interaction Failures (404 Not Found): Critical errors occur when the Discord bot tries to respond to slash commands (e.g., movie search). The log shows DSharpPlus.Exceptions.NotFoundException: Not found: 404 when calling CreateInteractionResponseAsync. This prevents any successful interaction with the bot.
  2. Bot Restart Loop: The logs show repeated cycles of "Bot configuration changed: restarting bot" and "Bot has been restarted," which seems to be linked to the Discord bot's inability to function correctly or maintain a stable connection.

To Reproduce
Steps to reproduce the behavior:

Attempt to use a Discord slash command (e.g., /movie search title <movie_name>).

Screenshots/Logs

Starting Requestrr - build 'v2.1.7'
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot configuration changed: restarting bot
Hosting environment: Production
Content root path: /root
Now listening on: http://[::]:4545
Application started. Press Ctrl+C to shut down.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot has been restarted.
Application is shutting down...
Starting Requestrr - build 'v2.1.7'
Hosting environment: Production
Content root path: /root
Now listening on: http://[::]:4545
Application started. Press Ctrl+C to shut down.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot configuration changed: restarting bot
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot has been restarted.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot configuration changed: restarting bot
No temp folder found, creating one...
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot has been restarted.
fail: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Error while searching movies with title mortal engines : Not found: 404
      DSharpPlus.Exceptions.NotFoundException: Not found: 404
         at DSharpPlus.Net.DiscordApiClient.CreateInteractionResponseAsync(UInt64 interaction_id, String interaction_token, InteractionResponseType type, DiscordInteractionResponseBuilder builder)
         at Requestrr.WebApi.RequestrrBot.SlashCommands.RequestGroup.MovieByTitle99999(InteractionContext ctx, String movieTitle)
fail: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Error while searching movies with title conclave : Not found: 404
      DSharpPlus.Exceptions.NotFoundException: Not found: 404
         at DSharpPlus.Net.DiscordApiClient.CreateInteractionResponseAsync(UInt64 interaction_id, String interaction_token, InteractionResponseType type, DiscordInteractionResponseBuilder builder)
         at Requestrr.WebApi.RequestrrBot.SlashCommands.RequestGroup.MovieByTitle99999(InteractionContext ctx, String movieTitle)
fail: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Error while searching movies with title mortal engines : Not found: 404
      DSharpPlus.Exceptions.NotFoundException: Not found: 404
         at DSharpPlus.Net.DiscordApiClient.CreateInteractionResponseAsync(UInt64 interaction_id, String interaction_token, InteractionResponseType type, DiscordInteractionResponseBuilder builder)
         at Requestrr.WebApi.RequestrrBot.SlashCommands.RequestGroup.MovieByTitle99999(InteractionContext ctx, String movieTitle)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions