bohning / usdb_syncer

MIT License
71 stars 10 forks source link

Permission denied for cookies on Windows #187

Open rakuri255 opened 1 year ago

rakuri255 commented 1 year ago

Tested with Edge and Chrome. Iam logged in with the browser. The Syncer check also is successfully.

2023-10-10 23:06:55 [INFO] Successfully logged in to USDB with user 'abc'.
2023-10-10 23:06:55 [DEBUG] Get request for https://usdb.animux.de/index.php
2023-10-10 23:06:59 [DEBUG] https://usdb.animux.de:443 "GET /index.php?id=3365&link=detail HTTP/1.1" 200 None
2023-10-10 23:06:59 [INFO] #03365: Found 'Elvis Presley - Can’t Help Falling In Love' on USDB
2023-10-10 23:06:59 [DEBUG] #03365: fetching notes
2023-10-10 23:06:59 [DEBUG] Post request for https://usdb.animux.de/index.php
2023-10-10 23:07:01 [DEBUG] https://usdb.animux.de:443 "POST /index.php?link=gettxt&id=3365 HTTP/1.1" 200 None
2023-10-10 23:07:01 [DEBUG] #03365: FIX: Linebreaks corrected.
2023-10-10 23:07:01 [DEBUG] #03365: FIX: Inter-word spaces corrected.
Extracting cookies from edge
2023-10-10 23:07:01 [DEBUG] #03365: [Errno 13] Permission denied: 'C:\\Users\\abc\\AppData\\Local\\Microsoft\\Edge\\User Data\\Default\\Network\\Cookies'
2023-10-10 23:07:01 [ERROR] #03365: Failed to finish download due to an unexpected error. See debug log for more information.
RumovZ commented 1 year ago

Upstream issue: https://github.com/borisbabic/browser_cookie3/issues/195

bohning commented 1 year ago

In the comments of the upstream issue, a Rust implementation with Python bindings is mentioned that supposedly does not have these problems: https://github.com/thewh1teagle/rookie. Maybe that can help with the cookie issues?

RumovZ commented 1 year ago

We could try. Apparently, this stuff breaks regularly and we are at the mercy of the maintainer of whichever library we decide to go with...

luckyluggi commented 1 year ago

For me it does work with opera.

bohning commented 7 months ago

Maybe this is a solution for the issue: https://gist.github.com/csm10495/e89e660ffee0030e8ef410b793ad6a7e

Baklap4 commented 2 months ago

workaround for chrome users: https://github.com/borisbabic/browser_cookie3/issues/180#issuecomment-1587691954