lay295 / TwitchDownloader

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

ERROR: The remote server returned an error: (404) Not Found. #282

Closed Nutri626 closed 1 year ago

Nutri626 commented 2 years ago

getting error mentioned in the title when trying to download vod/chat (happens with every VOD)

grant-hoelscher commented 2 years ago

I am experiencing the same exception. Please find the corresponding stack trace below:


 ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
   at System.Net.WebClient.GetWebResponseTaskAsync(WebRequest request)
   at System.Net.WebClient.DownloadBitsAsync(WebRequest request, Stream writeStream, AsyncOperation asyncOp, Action`3 completionDelegate)
   at TwitchDownloaderCore.TwitchHelper.GetVideoInfo(Int32 videoId)
   at TwitchDownloaderCore.ChatDownloader.DownloadAsync(IProgress`1 progress, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at TwitchDownloaderCLI.Program.DownloadChat(Options inputOptions)
   at TwitchDownloaderCLI.Program.Main(String[] args)
IncorrigiblyBelligerent commented 2 years ago

Same exception here. On Debian Stable.

Nutri626 commented 2 years ago

its fixed for me, false alarm i guess, gonna close this one

lay295 commented 2 years ago

It's #251 I gotta migrate off of v5 API and to give warnings Twitch does "blackouts" of APIs they're going to soon deprecate. Today the blackout window was an hour.

https://discuss.dev.twitch.tv/t/legacy-twitch-api-v5-i-e-kraken-shutdown-reminder-february-28-2022/36589

I'll try and migrate to just using GQL sometime today.

IncorrigiblyBelligerent commented 2 years ago

The v5 API is up now, for the time being

Hannah-GBS commented 2 years ago

I'm curious as to whether you'll be able to migrate, as Twitch seems specifically uninterested in providing a VOD chat api now.

lay295 commented 2 years ago

I'm curious as to whether you'll be able to migrate, as Twitch seems specifically uninterested in providing a VOD chat api now.

I do not think they will ever provide an official API for chat comments. I mean I've always just used their undocumented API and will just keep doing so. I just needed to migrate some requests about getting VOD/Clip info off of kraken.

lay295 commented 2 years ago

~1.40.5~ ~1.40.6~ 1.40.7 doesn't use the Kraken API anymore, so next blackout this version should work. If there are no bug reports for a few days I'll mark it as stable and let people auto update to it.

I moved to GQL instead of Helix because I didn't want people to have to log in, or use some kind of server in my control to proxy requests. Interestingly it looks like TwitchLeecher went the helix approach and now makes users log in, strange. Anyways give it a shot if the regular version isn't working.

Nutri626 commented 2 years ago

1.40.5 doesn't use the Kraken API anymore, so next blackout this version should work. If there are no bug reports for a few days I'll mark it as stable and let people auto update to it.

I moved to GQL instead of Helix because I didn't want people to have to log in, or use some kind of server in my control to proxy requests. Interestingly it looks like TwitchLeecher went the helix approach and now makes users log in, strange. Anyways give it a shot if the regular version isn't working.

program simply wont launch

lay295 commented 2 years ago

Yeah, trying to figure out why... gimme a bit

lay295 commented 2 years ago

Sorry about that, updated the release.zip and it should work now

Nutri626 commented 2 years ago

Sorry about that, updated the release.zip and it should work now

yeah its working now, thanks again for fast response & fix as always

glubsy commented 2 years ago

Today it started happening again, for any videoId I tried:

> TwitchDownloaderCLI -m ChatDownload --id 1286825444 -o test.json
Unhandled exception. System.AggregateException: One or more errors occurred. (The remote server returned an error: (404) Not Found.)
 ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
   at System.Net.WebClient.GetWebResponseTaskAsync(WebRequest request)
   at System.Net.WebClient.DownloadBitsAsync(WebRequest request, Stream writeStream, AsyncOperation asyncOp, Action`3 completionDelegate)
   at TwitchDownloaderCore.TwitchHelper.GetVideoInfo(Int32 videoId)
   at TwitchDownloaderCore.ChatDownloader.DownloadAsync(IProgress`1 progress, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at TwitchDownloaderCLI.Program.DownloadChat(Options inputOptions)
   at TwitchDownloaderCLI.Program.Main(String[] args)
[1]    3892450 IOT instruction (core dumped)  TwitchDownloaderCLI -m ChatDownload --id 1286825444 -o 

Actually tried with 1.40.7 release and got this instead:

> TwitchDownloaderCLI -m ChatDownload --id 1286825444 -o test.json
Unhandled exception. System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at TwitchDownloaderCore.ChatDownloader.DownloadAsync(IProgress`1 progress, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at TwitchDownloaderCLI.Program.DownloadChat(Options inputOptions)
   at TwitchDownloaderCLI.Program.Main(String[] args)
[1]    3894013 IOT instruction (core dumped)  TwitchDownloaderCLI -m ChatDownload --id 1290915475 -o
mohad12211 commented 2 years ago

@glubsy 1.40.7 working with no issues here, did you try to reboot/delete the temp directory?

glubsy commented 2 years ago

@mohad12211 indeed, it works now. Might have been a temporary issue on Twitch's side.

However, I still get the "Object reference not set to an instance of an object" error instead of a proper 404 error when trying to download --id 1290915475 which is a deleted video so I'm expecting a 404 error (not a big deal I can live with that).