[WARNING] --chat-connections has been deprecated in favor of -t / --threads and may be removed. Run 'TwitchDownloaderCLI.exe help' for more information.
TwitchDownloaderCLI 1.55.0 Copyright (c) lay295 and contributors
[STATUS] - Downloading 100%
[STATUS] - Downloading Embed Images 25%Unhandled exception. System.AggregateException: One or more errors occurred. (A task was canceled.)
---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at TwitchDownloaderCLI.Modes.DownloadChat.Download(ChatDownloadArgs inputOptions) in TwitchDownloader\TwitchDownloaderCLI\Modes\DownloadChat.cs:line 23
at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
at TwitchDownloaderCLI.Program.Main(String[] args) in TwitchDownloader\TwitchDownloaderCLI\Program.cs:line 34
--- End of stack trace from previous location ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at TwitchDownloaderCLI.Modes.DownloadChat.Download(ChatDownloadArgs inputOptions) in TwitchDownloader\TwitchDownloaderCLI\Modes\DownloadChat.cs:line 23
at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
at TwitchDownloaderCLI.Program.Main(String[] args) in TwitchDownloader\TwitchDownloaderCLI\Program.cs:line 34
TwitchDownloader\TwitchDownloaderCLI\bin\Release\net6.0\TwitchDownloaderCLI.exe (process 8564) exited with code 0.
The loop variable ends up being null at some point, which causes the call to GetImage() to be invoked with an url of https://static-cdn.jtvnw.net/emoticons/v2//default/dark/2.0, which obviously fails to produce anything useful.
It's unclear to me whether this is just missing a null check (if so, how was this never noticed before?) or whether there's an underlying issue here that I'm not seeing due to lack of familiarity with this code.
Checklist
Edition
Command Line Interface
Describe your issue here
Command line arguments:
Output with somewhat useless stack trace:
Actual stack:
I've debugged this a little bit and the cause seems to stem from this loop here:
https://github.com/lay295/TwitchDownloader/blob/d42d70b8d8d89e99aa3be7da252e6e9153c03220/TwitchDownloaderCore/TwitchHelper.cs#L540-L549
The loop variable ends up being
null
at some point, which causes the call toGetImage()
to be invoked with an url ofhttps://static-cdn.jtvnw.net/emoticons/v2//default/dark/2.0
, which obviously fails to produce anything useful.It's unclear to me whether this is just missing a null check (if so, how was this never noticed before?) or whether there's an underlying issue here that I'm not seeing due to lack of familiarity with this code.
Add any related files or extra information here
No response