AlexCSDev / PatreonDownloader

Powerful tool for downloading content posted by creators on patreon.com. Supports content hosted on patreon itself as well as external sites (additional plugins might be required).
MIT License
928 stars 95 forks source link

CG.Web.MegaApiClient.ApiException: API response: ToManyRequestsForThisResource #154

Closed WindedHero closed 1 year ago

WindedHero commented 1 year ago

Looks like Mega links to banned accounts report the wrong error? "This link is unavailable as the user’s account has been closed for gross violation of MEGA’s Terms of Service". But error information says too many requests for this resource. Google drive still suffers from #143

2022-12-25 13:31:20.0222 ERROR Error while downloading https://mega.nz/folder/###: Unable to download https://mega.nz/folder/###: CG.Web.MegaApiClient.ApiException: API response: ToManyRequestsForThisResource
   at CG.Web.MegaApiClient.MegaApiClient.RequestCore[TResponse](RequestBase request, Byte[] key)
   at CG.Web.MegaApiClient.MegaApiClient.Request[TResponse](RequestBase request, Byte[] key)
   at CG.Web.MegaApiClient.MegaApiClient.GetNodeFromLink(Uri uri)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at UniversalDownloaderPlatform.MegaDownloader.MegaDownloader.DownloadUrlAsync(ICrawledUrl crawledUrl, String downloadPath, Boolean overwriteFiles)
   at UniversalDownloaderPlatform.MegaDownloader.Plugin.Download(ICrawledUrl crawledUrl, String downloadDirectory). Inner Exception: CG.Web.MegaApiClient.ApiException: API response: ToManyRequestsForThisResource
   at CG.Web.MegaApiClient.MegaApiClient.RequestCore[TResponse](RequestBase request, Byte[] key)
   at CG.Web.MegaApiClient.MegaApiClient.Request[TResponse](RequestBase request, Byte[] key)
   at CG.Web.MegaApiClient.MegaApiClient.GetNodeFromLink(Uri uri)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at UniversalDownloaderPlatform.MegaDownloader.MegaDownloader.DownloadUrlAsync(ICrawledUrl crawledUrl, String downloadPath, Boolean overwriteFiles)
   at UniversalDownloaderPlatform.MegaDownloader.Plugin.Download(ICrawledUrl crawledUrl, String downloadDirectory)
2022-12-25 13:31:20.0222 ERROR Failed to download https://mega.nz/folder/###: Error while downloading https://mega.nz/folder/###: Unable to download https://mega.nz/folder/###: CG.Web.MegaApiClient.ApiException: API response: ToManyRequestsForThisResource
   at CG.Web.MegaApiClient.MegaApiClient.RequestCore[TResponse](RequestBase request, Byte[] key)
   at CG.Web.MegaApiClient.MegaApiClient.Request[TResponse](RequestBase request, Byte[] key)
   at CG.Web.MegaApiClient.MegaApiClient.GetNodeFromLink(Uri uri)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at UniversalDownloaderPlatform.MegaDownloader.MegaDownloader.DownloadUrlAsync(ICrawledUrl crawledUrl, String downloadPath, Boolean overwriteFiles)
   at UniversalDownloaderPlatform.MegaDownloader.Plugin.Download(ICrawledUrl crawledUrl, String downloadDirectory). Inner Exception: CG.Web.MegaApiClient.ApiException: API response: ToManyRequestsForThisResource
   at CG.Web.MegaApiClient.MegaApiClient.RequestCore[TResponse](RequestBase request, Byte[] key)
   at CG.Web.MegaApiClient.MegaApiClient.Request[TResponse](RequestBase request, Byte[] key)
   at CG.Web.MegaApiClient.MegaApiClient.GetNodeFromLink(Uri uri)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at UniversalDownloaderPlatform.MegaDownloader.MegaDownloader.DownloadUrlAsync(ICrawledUrl crawledUrl, String downloadPath, Boolean overwriteFiles)
   at UniversalDownloaderPlatform.MegaDownloader.Plugin.Download(ICrawledUrl crawledUrl, String downloadDirectory)
AlexCSDev commented 1 year ago

Nothing I can do about that. This error is reported by the external library