Skip to content

Cookie Import Error AddCookieToSessionActualCookie() missing 1 required positional argument: 'cookie' #2011

@TacoMagick

Description

@TacoMagick

Hydrus version

v670

Qt major version

Qt 6

Operating system

Windows 11

Install method

Extract

Install and OS comments

Updating from v668 to v670 deleted the "lib" folder and extracted the zip contents, overwrote the executables.

Bug description and reproduction

1. network > data > review session cookies
2. Export Firefox cookies for site using [cookies.txt](https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/) in Netscape format (this is probably not an extension issue because it works with other tools such as yt-dlp)
3. click "import cookies.txt (drag and drop also works!"
4. select cookies.txt location
5. Type Error
1. network > data > review session cookies
2. Copy Firefox cookies using [cookies.txt](https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/)
3. click "import from clipboard"
4. "Did not understand what was in the clipboard Extra data: line 1 column 2 (char 1)"
1. network > data > review session cookies
2. Export ALL Firefox cookies using [cookies.txt](https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/) in Netscape format (this is probably not an extension issue because it works with other tools such as yt-dlp)
3. click "import cookies.txt (drag and drop also works!"
4. select cookies.txt location
5. "It looks like that cookies.txt failed to load. Unfortunately, not all formats are supported" LoadError invalid netscape format cookies file 

Log output

v670, win32, frozen
TypeError
AddCookieToSessionActualCookie() missing 1 required positional argument: 'cookie'
================ Exception ================
TypeError: AddCookieToSessionActualCookie() missing 1 required positional argument: 'cookie'
================ Traceback ================
Traceback (most recent call last):
  File "hydrus\client\gui\widgets\ClientGUICommon.py", line 357, in EventButton
  File "hydrus\client\gui\networking\ClientGUINetwork.py", line 1606, in _ImportCookiesTXT
  File "hydrus\client\gui\networking\ClientGUINetwork.py", line 1636, in _ImportCookiesTXTPaths
TypeError: AddCookieToSessionActualCookie() missing 1 required positional argument: 'cookie'
================== Stack ==================
  File "hydrus_client.pyw", line 11, in <module>
  File "hydrus\hydrus_client_boot.py", line 272, in boot
  File "hydrus\client\ClientController.py", line 1971, in Run
  File "qtpy\QtWidgets.py", line 165, in <lambda>
  File "qtpy\_utils.py", line 53, in possibly_static_exec
  File "hydrus\client\ClientData.py", line 30, in CatchExceptionClient
  File "hydrus\client\ClientThreading.py", line 365, in SetExceptionTuple
  File "hydrus\core\HydrusData.py", line 328, in ConvertExceptionTupleToNiceTrace
=================== End ===================


Error 2:

v670, win32, frozen
LoadError
invalid Netscape format cookies file '[PATH]\\cookies.txt': '[WEBSITE]\tFALSE\t/\tFALSE\t1798314891\tbp_ut_session\t%7B-q-pageviews-q-%3A1-c--q-referrer-q-%3A-q-https%3A%2F%2F[WEBSITE]%2Fproduct%2F[PRODUCT]%2Fref%2F448115%2F%3F__cf_chl_tk%3DtLakOgZ0cqIP64IXOMka72i0_dApP1pFuUkg6_5h9X0-1763754882-1.0.1.1-.LICO4knjBxUWsfyTVmYvmId1y0kUAiSDmnVy6Iavbw-q--c--q-landingPage-q-%3A-q-https%3A%2F%2F[WEBSITE]%2Fproduct%2F[PRODUCT]%2Fref%2F448115%2F-q--c--q-started-q-%3A1763754891475%7D'
================ Exception ================
LoadError: invalid Netscape format cookies file '[PATH]\\cookies.txt': '[WEBSITE]\tFALSE\t/\tFALSE\t1798314891\tbp_ut_session\t%7B-q-pageviews-q-%3A1-c--q-referrer-q-%3A-q-https%3A%2F%2F[WEBSITE]%2Fproduct%2F[PRODUCT]%2Fref%2F448115%2F%3F__cf_chl_tk%3DtLakOgZ0cqIP64IXOMka72i0_dApP1pFuUkg6_5h9X0-1763754882-1.0.1.1-.LICO4knjBxUWsfyTVmYvmId1y0kUAiSDmnVy6Iavbw-q--c--q-landingPage-q-%3A-q-https%3A%2F%2F[WEBSITE]%2Fproduct%2F[PRODUCT]%2Fref%2F448115%2F-q--c--q-started-q-%3A1763754891475%7D'
================ Traceback ================
Traceback (most recent call last):
  File "http\cookiejar.py", line 2021, in _really_load
UnicodeDecodeError: 'cp932' codec can't decode byte 0x85 in position 5233: illegal multibyte sequence

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "hydrus\client\gui\networking\ClientGUINetwork.py", line 1621, in _ImportCookiesTXTPaths
  File "http\cookiejar.py", line 1802, in load
  File "http\cookiejar.py", line 2079, in _really_load
http.cookiejar.LoadError: invalid Netscape format cookies file '[PATH]\\cookies.txt': '[WEBSITE]\tFALSE\t/\tFALSE\t1798314891\tbp_ut_session\t%7B-q-pageviews-q-%3A1-c--q-referrer-q-%3A-q-https%3A%2F%2F[WEBSITE]%2Fproduct%2F[PRODUCT]%2Fref%2F448115%2F%3F__cf_chl_tk%3DtLakOgZ0cqIP64IXOMka72i0_dApP1pFuUkg6_5h9X0-1763754882-1.0.1.1-.LICO4knjBxUWsfyTVmYvmId1y0kUAiSDmnVy6Iavbw-q--c--q-landingPage-q-%3A-q-https%3A%2F%2F[WEBSITE]%2Fproduct%2F[PRODUCT]%2Fref%2F448115%2F-q--c--q-started-q-%3A1763754891475%7D'
================== Stack ==================
  File "hydrus_client.pyw", line 11, in <module>
  File "hydrus\hydrus_client_boot.py", line 272, in boot
  File "hydrus\client\ClientController.py", line 1971, in Run
  File "qtpy\QtWidgets.py", line 165, in <lambda>
  File "qtpy\_utils.py", line 53, in possibly_static_exec
  File "hydrus\client\gui\widgets\ClientGUICommon.py", line 357, in EventButton
  File "hydrus\client\gui\networking\ClientGUINetwork.py", line 1606, in _ImportCookiesTXT
  File "hydrus\client\gui\networking\ClientGUINetwork.py", line 1625, in _ImportCookiesTXTPaths
  File "hydrus\client\ClientData.py", line 129, in ShowExceptionClient
  File "hydrus\client\ClientData.py", line 143, in ShowExceptionTupleClient
  File "hydrus\client\ClientThreading.py", line 365, in SetExceptionTuple
  File "hydrus\core\HydrusData.py", line 328, in ConvertExceptionTupleToNiceTrace
=================== End ===================

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions