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

HttpClient.Timeout when retrieving bot profile crashes the app #1

@eduherminio

Description

@eduherminio

Logs:

fail: LichessChallenger.Worker[0]
      Error querying online status of Lynx_BOT: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
05:26:18 | [ERROR] Error querying online status of Lynx_BOT:    The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
fail: Microsoft.Extensions.Hosting.Internal.Host[9]
      BackgroundService failed
      System.NullReferenceException: Can't find Lichess username Lynx_BOT
         at LichessChallenger.Worker.ExecuteAsync(CancellationToken stoppingToken) in LichessChallenger.dll:token 0x600000b+0x4df
         at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService ) in Microsoft.Extensions.Hosting.dll:token 0x6000060+0x76
05:26:18 | [ERROR] BackgroundService failed System.NullReferenceException: Can't find Lichess username Lynx_BOT
   at LichessChallenger.Worker.ExecuteAsync(CancellationToken stoppingToken) in LichessChallenger.dll:token 0x600000b+0x4df
   at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService ) in Microsoft.Extensions.Hosting.dll:token 0x6000060+0x76
crit: Microsoft.Extensions.Hosting.Internal.Host[10]
      The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted.
      System.NullReferenceException: Can't find Lichess username Lynx_BOT
         at LichessChallenger.Worker.ExecuteAsync(CancellationToken stoppingToken) in LichessChallenger.dll:token 0x600000b+0x4df
         at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService ) in Microsoft.Extensions.Hosting.dll:token 0x6000060+0x76
05:26:18 | [FATAL] The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted. System.NullReferenceException: Can't find Lichess username Lynx_BOT
   at LichessChallenger.Worker.ExecuteAsync(CancellationToken stoppingToken) in LichessChallenger.dll:token 0x600000b+0x4df
   at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService ) in Microsoft.Extensions.Hosting.dll:token 0x6000060+0x76
05:26:18 | [INFO] Application is shutting down...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions