You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/xxx/.virtualenvs/scripts/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 580, in _decrypt
decrypted = unpad(cipher.decrypt(
^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/.virtualenvs/scripts/lib/python3.11/site-packages/Cryptodome/Util/Padding.py", line 92, in unpad
raise ValueError("Padding is incorrect.")
ValueError: Padding is incorrect.
Traceback (most recent call last):
File "/Users/xxx/.virtualenvs/scripts/scripts/cron/xxx.py", line 5, in <module>
from browser_session import get, post
File "/Users/xxx/.virtualenvs/scripts/scripts/cron/yyy.py", line 5, in <module>
s.cookies = browser_cookie3.chrome()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/.virtualenvs/scripts/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 1161, in chrome
return Chrome(cookie_file, domain_name, key_file).load()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/.virtualenvs/scripts/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 515, in load
value = self._decrypt(value, enc_value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/.virtualenvs/scripts/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 586, in _decrypt
raise BrowserCookieError('Unable to get key for cookie decryption')
browser_cookie3.BrowserCookieError: Unable to get key for cookie decryption
If I change to Safary:
PermissionError: [Errno 1] Operation not permitted: '/Users/xxx/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies'
The text was updated successfully, but these errors were encountered:
Same issue when I'm using Safari on macOS and it shows PermissionError.
I can't even manually sudo cd to the cookie path .../Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies.
Everything is OK, if I manual run in the iterm.
Chrome 119.0.6045.199 (arm64)
MacOS Sonama 14.1.2
But when I add the script in crontab, it fails with the errors:
If I change to Safary:
The text was updated successfully, but these errors were encountered: