Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several Errors Related to Fanbox #1380

Open
BookReader101 opened this issue Oct 10, 2024 · 0 comments
Open

Several Errors Related to Fanbox #1380

BookReader101 opened this issue Oct 10, 2024 · 0 comments

Comments

@BookReader101
Copy link

Prerequisites

  • [Yes] Did you read FAQ section in readme.md?
  • [Yes] Did you test with the latest releases or commit ?
  • [Yes] Did you search for existing issues in Issues?

Description

Cannot download from Fanbox. Basically followed all the steps to update my cookies, updated to the latest version, used firefox to grab the cloudflare cookies, and after several errors I got the program functional, but the fanbox does not work for the old version or the latest release. Not sure about running from the source code, I probably didn't do it right but it produces a similar yet different error related to cookies or something.
Downloading individual posts actually works on the latest release version, but the other options result in the error.

Steps to Reproduce

  1. Get fresh cookies.
  2. Run PixivUtil2.exe/.py
  3. Do operation f1, f2, f4, f5, f6

Expected behavior: For the downloads to happen.

Actual behavior: Multiple error messages.
(LATEST RELEASE ERROR AFTER INPUT F1)

  • Traceback (most recent call last):
    File "PixivUtil2.py", line 1745, in main
    File "PixivUtil2.py", line 1467, in main_loop
    File "PixivUtil2.py", line 945, in menu_fanbox_download_from_list
    File "PixivFanboxHandler.py", line 50, in process_fanbox_artist_by_id
    File "PixivBrowserFactory.py", line 1048, in fanboxGetPostsFromArtist
    File "PixivModelFanbox.py", line 575, in parsePosts
    TypeError: list indices must be integers or slices, not str
    Unknown Error, please check the log file: (<class 'TypeError'>, TypeError('list indices must be integers or slices, not str'), <traceback object at 0x0000020E89E74D40>)

(OLD VERSION ERROR AFTER INPUT F1)

  • Input: f1
    End Page (default is 0) =
    Trying to log in FANBOX with saved cookie
    Not logged in to FANBOX, trying to update FANBOX cookie...
    Traceback (most recent call last):
    File "PixivUtil2.py", line 1462, in main
    File "PixivUtil2.py", line 1189, in main_loop
    File "PixivUtil2.py", line 786, in menu_fanbox_download_from_list
    File "PixivBrowserFactory.pyc", line 884, in fanboxGetArtistList
    File "PixivBrowserFactory.pyc", line 396, in fanbox_is_logged_in
    File "PixivBrowserFactory.pyc", line 389, in fanboxLoginUsingCookie
    File "PixivBrowserFactory.pyc", line 414, in updateFanboxCookie
    Exception: Could not get pixivAccount.postKey while trying to log into fanbox.cc with given pixiv.net cookie
    Unknown Error, please check the log file: (<class 'Exception'>, Exception('Could not get pixivAccount.postKey while trying to log into fanbox.cc with given pixiv.net cookie'), <traceback object at 0x04945E88>)

(LATEST MASTER ERROR ON STARTUP)

  • Username login is broken, use Cookies to log in.
    See Q3. at https://github.com/Nandaka/PixivUtil2?tab=readme-ov-file#a-usage
    Trying to log in with saved cookie
    Error at doLogin(): (<class 'mechanize._response.get_seek_wrapper_class..httperror_seek_wrapper'>, <httperror_seek_wrapper (urllib.error.HTTPError instance) at 0x1773e11d130 whose wrapped object = <HTTPError 403: 'Forbidden'>>, <traceback object at 0x000001773E13ABC0>)
    Traceback (most recent call last):
    File "C:\Logs\Auxillary Logs\APPLE\Backup\PROD\PixivUtil2-master\PixivUtil2-master\PixivUtil2.py", line 1558, in doLogin
    result = br.loginUsingCookie()
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Logs\Auxillary Logs\APPLE\Backup\PROD\PixivUtil2-master\PixivUtil2-master\PixivBrowserFactory.py", line 352, in loginUsingCookie
    res = self.open_with_retry('https://www.pixiv.net') # + self._locale)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Logs\Auxillary Logs\APPLE\Backup\PROD\PixivUtil2-master\PixivUtil2-master\PixivBrowserFactory.py", line 208, in open_with_retry
    res = self.open(url, data, timeout)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\pinkc\AppData\Local\Programs\Python\Python312\Lib\site-packages\mechanize_mechanize.py", line 257, in open
    return self._mech_open(url_or_request, data, timeout=timeout)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\pinkc\AppData\Local\Programs\Python\Python312\Lib\site-packages\mechanize_mechanize.py", line 313, in _mech_open
    raise response
    mechanize._response.get_seek_wrapper_class..httperror_seek_wrapper: HTTP Error 403: Forbidden

Cannot Login!

Log file:
pixivutil.log (latest release)
pixivutil.log (old version 20211104)
pixivutil.log (latest master)

Versions

latest release version 20240703
original version 20211104
latest master version 20240703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant