FurryCoders / FALocalRepo

Pure Python program to download submissions, journals, and user folders from the FurAffinity forum in an easily handled database.
European Union Public License 1.2
21 stars 2 forks source link

[solved] [incompatible browser cookies] Missing cookies causing session error #1

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello, I have recently come across this program, but have not been able to run it. I've logged into Furaffinty (using the beta theme and without any ad blockers), exported my cookies into a json file (properly named) and placed it in the same directory as the executable file. When I run the program and try to download files it fails at the third check. After examining the cookie file, it seems to be missing the cookies named "n" and "s". I am unable to find which setting in my FA account or which third party cookie provides these. Any suggestions?

MatteoCampinoti94 commented 6 years ago

What browser did you get the cookies from? I used both chrome and Firefox and it worked fine.

MatteoCampinoti94 commented 6 years ago

Have you enabled the secure mode in FA's settings?

MatteoCampinoti94 commented 6 years ago

'Account Settings' -> 'Account Security Level' -> 'Full Security Mode'

MatteoCampinoti94 commented 6 years ago

The s cookie is a simple boolean it seems, it's set to 0 in my cookies. The n cookie on the other hand is an epoch time, 1506534885 in my case (2017/09/27 17:54:45) and I think it's the time that particular session was created.

MatteoCampinoti94 commented 6 years ago

Did some tests and both the n and s cookies aren't needed. I think your error is caused by the session your cookies refer to. Try again to export them but do it from an incognito window. That way the session you open won't be closed unless you do it explicitely in the 'Active Sessions' section on furaffinity.net. If the problem persists I will need your cookies for testing, not the values though, I'll use my own instead to see if the problem is in the file.

MatteoCampinoti94 commented 6 years ago

I'll add a function to analyze the cookie file and help with errors like yours

ghost commented 6 years ago

Thank you for replying. I've enabled 'Full Security Mode' on FA but to no change; so I checked my browser. I had been using Firefox Quantum 60. After some experimentation, I rolled back to Firefox 56, exported the cookies and it seems to have worked. I know that Quantum has caused problems with extensions but I'm unaware how it caused this issue.

MatteoCampinoti94 commented 6 years ago

You're welcome. Happy to see it works now :) No idea why that wuld be a problem, maybe version 60 stores cookies in a different format? If you need to create a new session try installing a different browser (Chrome/Chromium would be best as they store cookies in json format already soit makes it easier to export them) and use it only to login and export the cookies before uninstalling it and deleting all its local files.

ghost commented 6 years ago

Will do. Thank you for your help.

MatteoCampinoti94 commented 6 years ago

You're welcome :)

MatteoCampinoti94 commented 6 years ago

Added a function that checks the cookies file for errors if the program fails to create a session, hope it will help :)