lay295 / TwitchDownloader

Twitch VOD/Clip Downloader - Chat Download/Render/Replay
MIT License
2.78k stars 261 forks source link

System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue. #401

Closed Reuniko closed 2 years ago

Reuniko commented 2 years ago

Checklist

Describe your issue here

D:\Reuniko\TwitchDownloaderCLI>TwitchDownloaderCLI -m VideoDownload -u 1642266422 --ffmpeg-path ffmpeg.exe -o 1642266422.avi Unhandled exception. System.AggregateException: One or more errors occurred. (Cannot access child value on Newtonsoft.Json.Linq.JValue.) ---> System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue. at Newtonsoft.Json.Linq.JToken.get_Item(Object key) at TwitchDownloaderCore.VideoDownloader.DownloadAsync(IProgress`1 progress, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean ) at System.Threading.Tasks.Task.Wait(Int32 , CancellationToken ) at System.Threading.Tasks.Task.Wait() at TwitchDownloaderCLI.Program.DownloadVideo(Options inputOptions) at TwitchDownloaderCLI.Program.Main(String[] args)

ScrubN commented 2 years ago

I'm unable to replicate using your exact input. Can you run TwitchDownloaderCLI --version to be sure you're using 1.50.5?

Also, I recommend using mp4 or mkv instead of avi for better visual quality and slightly smaller files

Reuniko commented 2 years ago

D:\Reuniko\TwitchDownloaderCLI>TwitchDownloaderCLI --version TwitchDownloaderCLI 1.50.5

wierd, now its working, might be some kind of issue with twitch, cause I launched it right after stream ended

gadi-playstream-gg commented 1 year ago

@ScrubN Since I'm downloading right after the stream has ended , I encounterd this issue several times. any idea how to solve this?

ScrubN commented 1 year ago

@ScrubN Since I'm downloading right after the stream has ended , I encounterd this issue several times. any idea how to solve this?

I have a theory as to where the exception is thrown but I'm not 100% certain. Would you be willing to test a debug build? If so, what OS and GUI or CLI if applicable