Jettcodey / TikTok-Downloader

Just a simple TikTok Downloader for Windows capable of downloading single videos/images, Mass Downloading from Links in a Text file or Mass downloading from an entire Profile.
MIT License
19 stars 4 forks source link

Code Stops when it runs Into a URL not found #3

Closed marpa96 closed 4 months ago

marpa96 commented 4 months ago

You can see the error dialogue below:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.Exception: Error: URL not found at TikTok_Downloader.MainForm.GetIdVideo(String url) at TikTok_Downloader.MainForm.GetVideo(String url, Boolean withWatermark) at TikTok_Downloader.MainForm.DownloadFromTextFile(String filePath) at TikTok_Downloader.MainForm.btnDownload_Click(Object sender, EventArgs e) at System.Threading.Tasks.Task.<>c.b__128_0(Object state) at InvokeStub_SendOrPostCallback.Invoke(Object, Span`1) at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

** Loaded Assemblies ** System.Private.CoreLib Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Private.CoreLib.dll

TikTok Downloader Assembly Version: 1.1.7.0 Location: C:\Program Files\Jettcodey\TikTok Downloader\TikTok Downloader\TikTok Downloader.dll

System.Runtime Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Runtime.dll

System.Windows.Forms Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.1\System.Windows.Forms.dll

System.ComponentModel.Primitives Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.ComponentModel.Primitives.dll

System.Windows.Forms.Primitives Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.1\System.Windows.Forms.Primitives.dll

System.Drawing.Primitives Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Drawing.Primitives.dll

System.Collections.Specialized Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Collections.Specialized.dll

System.Runtime.InteropServices Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Runtime.InteropServices.dll

System.Threading Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Threading.dll

System.Diagnostics.TraceSource Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Diagnostics.TraceSource.dll

System.Collections Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Collections.dll

System.Drawing.Common Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.1\System.Drawing.Common.dll

Microsoft.Win32.Primitives Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\Microsoft.Win32.Primitives.dll

System.ComponentModel.EventBasedAsync Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.ComponentModel.EventBasedAsync.dll

System.Threading.Thread Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Threading.Thread.dll

Accessibility Assembly Version: 4.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.1\Accessibility.dll

System.ComponentModel.TypeConverter Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.ComponentModel.TypeConverter.dll

System.Numerics.Vectors Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Numerics.Vectors.dll

System.Memory Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Memory.dll

Microsoft.Win32.SystemEvents Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.1\Microsoft.Win32.SystemEvents.dll

System.Collections.Concurrent Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Collections.Concurrent.dll

System.ComponentModel Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.ComponentModel.dll

System.Runtime.Loader Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Runtime.Loader.dll

System.Resources.Extensions Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.1\System.Resources.Extensions.dll

System.Drawing Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.1\System.Drawing.dll

System.ObjectModel Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.ObjectModel.dll

System.Management Assembly Version: 8.0.0.0 Location: C:\Program Files\Jettcodey\TikTok Downloader\TikTok Downloader\runtimes\win\lib\net8.0\System.Management.dll

System.IO.FileSystem.DriveInfo Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.IO.FileSystem.DriveInfo.dll

Microsoft.Win32.Registry Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\Microsoft.Win32.Registry.dll

System.Private.Uri Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Private.Uri.dll

System.Collections.NonGeneric Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Collections.NonGeneric.dll

System.Net.Http Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Net.Http.dll

System.Net.Primitives Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Net.Primitives.dll

System.Text.Json Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Text.Json.dll

System.Linq Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Linq.dll

System.Diagnostics.Tracing Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Diagnostics.Tracing.dll

System.Diagnostics.DiagnosticSource Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Diagnostics.DiagnosticSource.dll

System.Net.Security Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Net.Security.dll

System.Security.Cryptography Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Security.Cryptography.dll

System.Net.Sockets Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Net.Sockets.dll

System.Threading.Overlapped Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Threading.Overlapped.dll

System.Net.NameResolution Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Net.NameResolution.dll

System.Threading.ThreadPool Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Threading.ThreadPool.dll

System.Runtime.Intrinsics Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Runtime.Intrinsics.dll

System.Security.Principal.Windows Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Security.Principal.Windows.dll

System.Security.Claims Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Security.Claims.dll

System.Net.NetworkInformation Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Net.NetworkInformation.dll

System.Text.Encoding.Extensions Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Text.Encoding.Extensions.dll

System.Text.Encodings.Web Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Text.Encodings.Web.dll

System.Reflection.Emit.Lightweight Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Reflection.Emit.Lightweight.dll

System.Reflection.Primitives Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Reflection.Primitives.dll

System.Reflection.Emit.ILGeneration Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Reflection.Emit.ILGeneration.dll

System.Net.Quic Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Net.Quic.dll

System.Diagnostics.StackTrace Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Diagnostics.StackTrace.dll

System.Reflection.Metadata Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Reflection.Metadata.dll

System.Collections.Immutable Assembly Version: 8.0.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\System.Collections.Immutable.dll

Microsoft.Playwright Assembly Version: 1.43.0.0 Location: C:\Program Files\Jettcodey\TikTok Downloader\TikTok Downloader\Microsoft.Playwright.dll

netstandard Assembly Version: 2.1.0.0 Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\netstandard.dll

Microsoft.Bcl.AsyncInterfaces Assembly Version: 6.0.0.0 Location: C:\Program Files\Jettcodey\TikTok Downloader\TikTok Downloader\Microsoft.Bcl.AsyncInterfaces.dll

** JIT Debugging **

Jettcodey commented 4 months ago

Hey, thanks for reporting this behavior.

Could u please provide me the link which caused this exception? And the logs would be great too (if they exist).

And you are Using Release 1.1.7, the newest Release is 1.1.9, if Possible Update first and pls check if the error persists.

Jettcodey commented 4 months ago

Hey @marpa96 , I couldn't quite reproduce the exception, but I updated the code to ignore the error and continue with the next URL if present. This 'fix' will be included in Release 1.2.0 soon.

There may still be some more exceptions being thrown currently, but since the app won't crash or stop like it did in this instance, and everything works as intended, it's okay for now.