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
917 stars 95 forks source link

Getting Fatal error System.NullReferenceException:Object reference not set to an instance of an object. #183

Open Spyridion opened 1 year ago

Spyridion commented 1 year ago

I tried against two different creators and I'm getting the same error. I'm not sure where the error is coming from. Here's the text from the error: 2023-05-14 21:04:44.2044 FATAL Fatal error, application will be closed: System.NullReferenceException: Object reference not set to an instance of an object. at UniversalDownloaderPlatform.MegaDownloader.Plugin.BeforeStart(IUniversalDownloaderPlatformSettings settings) at UniversalDownloaderPlatform.Engine.PluginManager.BeforeStart(IUniversalDownloaderPlatformSettings settings) in F:\Sources\BigProjects\PatreonDownloader\submodules\UniversalDownloaderPlatform\UniversalDownloaderPlatform.Engine\PluginManager.cs:line 77 at UniversalDownloaderPlatform.Engine.UniversalDownloader.Download(String url, IUniversalDownloaderPlatformSettings settings) in F:\Sources\BigProjects\PatreonDownloader\submodules\UniversalDownloaderPlatform\UniversalDownloaderPlatform.Engine\UniversalDownloader.cs:line 177 at PatreonDownloader.App.Program.RunPatreonDownloader(CommandLineOptions commandLineOptions) in F:\Sources\BigProjects\PatreonDownloader\PatreonDownloader.App\Program.cs:line 128 at PatreonDownloader.App.Program.Main(String[] args) in F:\Sources\BigProjects\PatreonDownloader\PatreonDownloader.App\Program.cs:line 68

xduQuzhen commented 1 year ago

I meet the same problem and solved it. Your region has blocked the mega service, so you have to add the following command before in cmd before starting download. You should change port which is your proxy sofrware setting.(7890->yours port) set http_proxy=http://127.0.0.1:7890
set https_proxy=http://127.0.0.1:7890

curl https://www.google.com

if curl command return html,it works.

Spyridion commented 1 year ago

Interesting. It works once I remove my mega credentials. Unfortunately, I'm on windows so I don't have a proxy atm.

Spyridion commented 1 year ago

Would you know a workaround for windows by any chance?