PatreonDownloader
PatreonDownloader copied to clipboard
Unable to retrive cookies
I'm attempting to download content for the first time, but being unable to input my credentials. Web browser shows login page for 3 seconds then exits. Terminal returns the followig error:
$ ./PatreonDownloader.App --url https://www.patreon.com/artist-name/posts --download-directory /home/vapor/Downloads/patreon/test1
2021-10-30 20:46:40.7018 INFO Retrieving cookies...
2021-10-30 20:46:56.0068 FATAL Fatal error, application will be closed: System.Exception: Unable to retrieve cookies
at PatreonDownloader.App.Program.InitializeSettings(CommandLineOptions commandLineOptions) in /home/vapor/Downloads/PatreonDownloader/PatreonDownloader.App/Program.cs:line 166
at PatreonDownloader.App.Program.RunPatreonDownloader(CommandLineOptions commandLineOptions) in /home/vapor/Downloads/PatreonDownloader/PatreonDownloader.App/Program.cs:line 142
at PatreonDownloader.App.Program.Main(String[] args) in /home/vapor/Downloads/PatreonDownloader/PatreonDownloader.App/Program.cs:line 69
I'm I doing something wrong?
I believe this was previousley mentioned on issue #41 but was closed due to lack of response from the submitting part.
os: ubuntu 20.04.3 PatreonDownloader version: 0.10.1.2
I will try to find some time to check what is going on and get back to you. It isn't supposed to close login page at all until you successfully login.
Try to use the tarball for dotnet. The installation via snap or the script caused this error.
Try to use the tarball for dotnet. The installation via snap or the script caused this error.
I originally installed the dotnet sdk using apt. Retried with the tarball unsuccessfully.
You don't need neither runtime nor sdk installed to run the app if you download it from releases tab. Installing them should have no effect on the way application behaves as long as you use official binaries.
Generally I don't provide any support if you run the app from sources unless I can clearly see that the issue is in the code itself.
You don't need neither runtime nor sdk installed to run the app if you download it from releases tab. Installing them should have no effect on the way application behaves as long as you use official binaries.
Generally I don't provide any support if you run the app from sources unless I can clearly see that the issue is in the code itself.
Yes, I did try the official binary. My previous comment was supposed to be a reply to enamora, but I forgot to quote the suggestion.
on my end it opens an instant of chromium that google says isnt safe and thus wont let me login.
Was able to extract the cookies form chomium using:
chromium --remote-debugging-port=9222 > /dev/null 2>&1 & (sleep 10; pkill chrome) &
/path/to/PatreonDownloader.App \
--url https://www.patreon.com/creatorName/posts \
--download-directory /path/to/content/ \
--remote-browser-address ws://127.0.0.1:9222
I'm also using the official binary. Tried both the Windows and Linux versions and both produce the error eventually. On Windows version I ended up using a portable version of Chromium with the debug port enabled and that works for grabbing cookies.
EDIT: I think I figured this out. I was trying to run this on a "slow" drive and during testing I noted that portable Chromium had issues with starting as well so I did 2 things.
- I unpacked a fresh copy on a SSD (give it the best chance)
- I patiently waited for Chrome to be downloaded. On first launch the app actually downloads its own copy of Chrome to call and use for itself.
On windows, using Release 25 binaries. I can't get past this error. I've tried placing it on various drives (including my M.2 SSD), starting with a fresh extracted copy of the source.
Each time it spends a few moments downloading (I can see network traffic) before quitting with the error listed in the initial post.
I am going to try this next: "On Windows version I ended up using a portable version of Chromium with the debug port enabled and that works for grabbing cookies."