PatreonDownloader icon indicating copy to clipboard operation
PatreonDownloader copied to clipboard

Unable to retrive cookies

Open w-canvas opened this issue 2 years ago • 9 comments

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

w-canvas avatar Oct 31 '21 02:10 w-canvas

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.

AlexCSDev avatar Oct 31 '21 21:10 AlexCSDev

Try to use the tarball for dotnet. The installation via snap or the script caused this error.

enamoria avatar Nov 30 '21 18:11 enamoria

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.

w-canvas avatar Dec 01 '21 16:12 w-canvas

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.

AlexCSDev avatar Dec 01 '21 16:12 AlexCSDev

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.

w-canvas avatar Dec 01 '21 18:12 w-canvas

on my end it opens an instant of chromium that google says isnt safe and thus wont let me login.

yuukiw avatar Jan 09 '22 11:01 yuukiw

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

w-canvas avatar Jan 22 '22 18:01 w-canvas

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.

  1. I unpacked a fresh copy on a SSD (give it the best chance)
  2. 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.

shinji257 avatar Jan 29 '22 14:01 shinji257

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."

Ruthalas avatar Apr 10 '23 02:04 Ruthalas