darkalfx / requestrr

Requestrr is a chatbot used to simplify using services like Sonarr/Radarr/Ombi via the use of chat. Current platform is Discord only, but the bot was built around the ideology of quick adaptation for new features as well as new platforms.
MIT License
865 stars 101 forks source link

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

Open droans opened 11 months ago

droans commented 11 months ago

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)
jgramling17 commented 10 months ago

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.

Rain3x commented 8 months ago

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)
N4GR commented 8 months ago

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.

hacktek commented 8 months ago

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)
obadaahmar commented 8 months ago

I am getting the same exact error with all requests.

edrock200 commented 8 months ago

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.

Rain3x commented 8 months ago

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!