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.

"The application did not respond" every time the container is restarted #185

@Znuff

Description

@Znuff

Every now and then, Requestrr will just stop responding if I restart the container.

The docker compose logs requestrr will show:

fail: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      An error occurred while sending a private message movie notification to a specific user: Unauthorized: 403
      DSharpPlus.Exceptions.UnauthorizedException: Unauthorized: 403
         at DSharpPlus.Net.DiscordApiClient.CreateMessageAsync(UInt64 channel_id, String content, IEnumerable`1 embeds, Nullable`1 replyMessageId, Boolean mentionReply, Boolean failOnInvalidReply)
         at Requestrr.WebApi.RequestrrBot.Notifications.Movies.PrivateMessageMovieNotifier.NotifyAsync(IReadOnlyCollection`1 userIds, Movie movie, CancellationToken token) in D:\Dev\Requestrr\requestrr\Requestrr.WebApi\RequestrrBot\Notifications\Movies\PrivateMessageMovieNotifier.cs:line 55
fail: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      An error occurred while sending a private message movie notification to a specific user: Unauthorized: 403
      DSharpPlus.Exceptions.UnauthorizedException: Unauthorized: 403
         at DSharpPlus.Net.DiscordApiClient.CreateMessageAsync(UInt64 channel_id, String content, IEnumerable`1 embeds, Nullable`1 replyMessageId, Boolean mentionReply, Boolean failOnInvalidReply)
         at Requestrr.WebApi.RequestrrBot.Notifications.Movies.PrivateMessageMovieNotifier.NotifyAsync(IReadOnlyCollection`1 userIds, Movie movie, CancellationToken token) in D:\Dev\Requestrr\requestrr\Requestrr.WebApi\RequestrrBot\Notifications\Movies\PrivateMessageMovieNotifier.cs:line 55

Logging on the WebUI and hitting the Test button confirms that everything works right.

Restarting the container (again) will show:

requestrr  | [2023-10-18 01:33:45 +00:00] [0   /            ] [Crit ] There was an error registering application commands
requestrr  | System.ArgumentException: Source array was not long enough. Check the source index, length, and the array's lower bounds. (Parameter 'sourceArray')
requestrr  |    at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
requestrr  |    at System.Collections.Generic.List`1.set_Capacity(Int32 value)
requestrr  |    at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
requestrr  |    at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
requestrr  |    at DSharpPlus.SlashCommands.SlashCommandsExtension.<>c__DisplayClass39_0.<<RegisterCommands>b__0>d.MoveNext()

And then return An error occurred while sending a private message movie notification to a specific user: Unauthorized: 403 after a while.

Version is v2.1.2, running the darkalfx/requestrr image.

I have tried recreating the container, didn't help. Tried enabling Debugging, found nothing relevant.

Furthermore, on newly joined servers, the bot won't register commands on a new server until it's restarted.

Any advice on how to proceed further?

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