Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

"Error 400: Bad request" when requesting but only for one movie #184

Open

Description

@droans

I've been receiving a Bad request error for a specific movie, Dawn of the Dead. All other movies and shows seem to be processing correctly - even others with spaces or with similar names.

Here is the logging details:

fail: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Error while searching movies with title Dawn of the dead : Bad request: 400
      DSharpPlus.Exceptions.BadRequestException: Bad request: 400
         at DSharpPlus.Net.DiscordApiClient.EditWebhookMessageAsync(UInt64 webhook_id, String webhook_token, String message_id, DiscordWebhookBuilder builder, IEnumerable`1 attachments)
         at DSharpPlus.Entities.DiscordInteraction.EditOriginalResponseAsync(DiscordWebhookBuilder builder, IEnumerable`1 attachments)
         at Requestrr.WebApi.RequestrrBot.ChatClients.Discord.DiscordMovieUserInterface.ShowMovieSelection(MovieRequest request, IReadOnlyList`1 movies) in D:\Dev\Requestrr\requestrr\Requestrr.WebApi\RequestrrBot\ChatClients\Discord\DiscordMovieUserInterface.cs:line 31
         at Requestrr.WebApi.RequestrrBot.Movies.MovieRequestingWorkflow.SearchMovieAsync(String movieName) in D:\Dev\Requestrr\requestrr\Requestrr.WebApi\RequestrrBot\Movies\MovieRequestingWorkflow.cs:line 41
         at Requestrr.WebApi.RequestrrBot.SlashCommands.RequestGroup.MovieByTitle0(InteractionContext ctx, String movieTitle)

Activity

  1. jgramling17 commented on Oct 26, 2023

    @jgramling17

    Same.

    Update: I ran through these steps again and it works again. The only change I made was resetting my discord bot's token, and entering the new one into requestrr. So I would start there.

  2. Rain3x commented on Jan 3, 2024

    @Rain3x

    I'm having this issue as well. It happens with any movie with the word "dead" in the title. Evil Dead 2, Dawn of the Dead, Shaun of the Dead - all of them. Resetting the bot token did not resolve the issue.

       Error while searching movies with title dawn of the dead : Bad request: 400
          DSharpPlus.Exceptions.BadRequestException: Bad request: 400
             at DSharpPlus.Net.DiscordApiClient.EditWebhookMessageAsync(UInt64 webhook_id, String webhook_token, String message_id, DiscordWebhookBuilder builder, IEnumerable`1 attachments)
             at DSharpPlus.Entities.DiscordInteraction.EditOriginalResponseAsync(DiscordWebhookBuilder builder, IEnumerable`1 attachments)
             at Requestrr.WebApi.RequestrrBot.ChatClients.Discord.DiscordMovieUserInterface.ShowMovieSelection(MovieRequest request, IReadOnlyList`1 movies) in D:\Dev\Requestrr\requestrr\Requestrr.WebApi\RequestrrBot\ChatClients\Discord\DiscordMovieUserInterface.cs:line 31
             at Requestrr.WebApi.RequestrrBot.Movies.MovieRequestingWorkflow.SearchMovieAsync(String movieName) in D:\Dev\Requestrr\requestrr\Requestrr.WebApi\RequestrrBot\Movies\MovieRequestingWorkflow.cs:line 41
             at Requestrr.WebApi.RequestrrBot.SlashCommands.RequestGroup.MovieByTitle0(InteractionContext ctx, String movieTitle)
    warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
          Bot has been restarted.
    fail: Requestrr.WebApi.RequestrrBot.ChatBot[0]
          Error while searching movies with title evil dead 2 : Bad request: 400
          DSharpPlus.Exceptions.BadRequestException: Bad request: 400
             at DSharpPlus.Net.DiscordApiClient.EditWebhookMessageAsync(UInt64 webhook_id, String webhook_token, String message_id, DiscordWebhookBuilder builder, IEnumerable`1 attachments)
             at DSharpPlus.Entities.DiscordInteraction.EditOriginalResponseAsync(DiscordWebhookBuilder builder, IEnumerable`1 attachments)
             at Requestrr.WebApi.RequestrrBot.ChatClients.Discord.DiscordMovieUserInterface.ShowMovieSelection(MovieRequest request, IReadOnlyList`1 movies) in D:\Dev\Requestrr\requestrr\Requestrr.WebApi\RequestrrBot\ChatClients\Discord\DiscordMovieUserInterface.cs:line 31
             at Requestrr.WebApi.RequestrrBot.Movies.MovieRequestingWorkflow.SearchMovieAsync(String movieName) in D:\Dev\Requestrr\requestrr\Requestrr.WebApi\RequestrrBot\Movies\MovieRequestingWorkflow.cs:line 41
             at Requestrr.WebApi.RequestrrBot.SlashCommands.RequestGroup.MovieByTitle0(InteractionContext ctx, String movieTitle)
    
  3. N4GR commented on Jan 4, 2024

    @N4GR

    Hey @Rain3x @droans
    I actually just ran into this issue, after seeing there was a newly released version of Requestrr I updated my current version to the latest; it seemed a fresh install with the same configuration made it work again.

  4. hacktek commented on Jan 4, 2024

    @hacktek

    This is definitely a widespread issue of some sort. I just started getting this and as stated above, resetting the bot token didn't fix it.

    Contrary to the comment above, this is happening to me with any content requested through he bot.

    fail: Requestrr.WebApi.RequestrrBot.ChatBot[0]
          Error while searching movies with title dune : Bad request: 400
          DSharpPlus.Exceptions.BadRequestException: Bad request: 400
             at DSharpPlus.Net.DiscordApiClient.EditWebhookMessageAsync(UInt64 webhook_id, String webhook_token, String message_id, DiscordWebhookBuilder builder, IEnumerable`1 attachments)
             at DSharpPlus.Entities.DiscordInteraction.EditOriginalResponseAsync(DiscordWebhookBuilder builder, IEnumerable`1 attachments)
             at Requestrr.WebApi.RequestrrBot.ChatClients.Discord.DiscordMovieUserInterface.ShowMovieSelection(MovieRequest request, IReadOnlyList`1 movies) in D:\Dev\Requestrr\requestrr\Requestrr.WebApi\RequestrrBot\ChatClients\Discord\DiscordMovieUserInterface.cs:line 31
             at Requestrr.WebApi.RequestrrBot.Movies.MovieRequestingWorkflow.SearchMovieAsync(String movieName) in D:\Dev\Requestrr\requestrr\Requestrr.WebApi\RequestrrBot\Movies\MovieRequestingWorkflow.cs:line 41
             at Requestrr.WebApi.RequestrrBot.SlashCommands.RequestGroup.MovieByTitle99999(InteractionContext ctx, String movieTitle)
    
  5. obadaahmar commented on Jan 4, 2024

    @obadaahmar

    I am getting the same exact error with all requests.

  6. edrock200 commented on Jan 4, 2024

    @edrock200

    Hey @Rain3x @droans I actually just ran into this issue, after seeing there was a newly released version of Requestrr I updated my current version to the latest; it seemed a fresh install with the same configuration made it work again.

    Thanks for pointing out there is a new version. I ran into this error too, and after seeing your post I updated to the new version and the issue resolved for me. It's pertinent to note if you are running a docker container, and are using linuxserver.io repo, that repo is not getting updated. You have to change your image to use darkalfx/requestrr and change the in container /config mapping to /root/config to wherever you store the configs on your host.

    Doing this upgraded my existing instance and retained all settings, and the 400 errors went away.

  7. Rain3x commented on Jan 4, 2024

    @Rain3x

    Hey @Rain3x @droans I actually just ran into this issue, after seeing there was a newly released version of Requestrr I updated my current version to the latest; it seemed a fresh install with the same configuration made it work again.

    Can confirm this fixed the issue, didn't notice the update. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions