-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALSO I get all errors I try to download a file #7
Comments
This is pretty mysterious. The error is traced back to line 166 of Program.cs, which has this in it: DirectoryInfo directory = null; There should be absolutely no way for that line to throw an exception, but I've seen weirder stack traces. I suspect the line numbers are muddled up by the fact that the compiler optimized away some of the code, unless I compile the program in debug mode. Fortunately, function names are always correct, aside from the ones that get removed entirely. What this means is that the exception could have been literally anywhere in the DownloadMedia function, at or below line 166. I'll give the code a good read once more, and see if there's any obvious problems. [Slightly unrelated, but I did find one glaring logic error already, which I fixed. It couldn't have caused an error of this type, though.] |
One question. Did this error happen right away, or does it successfully download some posts? |
I do everything correctly, it generates posts.json, and when I open the downloader again, it generates the error immediately after I ask to run the .json. He doesn't download any posts. |
Hi, sorry for the delay. Please try it again with this build: It contains debug information which should provide accurate, full stack traces. The error message will be much more useful with this build. Future releases will contain this debugging information. |
Hi, Foxite.
I'm having a problem downloading, similar to a previous one that was solved by you,
Every time I run the program it shows the following error:
System.NullReferenceException: Object reference not set to an instance of an object.
at void PatreonDownloader.Program.DownloadMedia(HttpClient client, CookieContainer cookies, List posts) in /mnt/data/Development/PatreonDownloader/PatreonDownloader/Program.cs:line 166
at void PatreonDownloader.Program.Main(string[] args) in /mnt/data/Development/PatreonDownloader/PatreonDownloader/Program.cs:line 104
I even downloaded Chrome (which I particularly hate) but nothing worked.
I don't know how to proceed, I'm quite a layman with all this, sorry.
Could you please help me?
The text was updated successfully, but these errors were encountered: