Skip to content

Infinite crashs due to Cloudflare changes #33

Description

@TH0MVS

Hello,

First of all, thank you very much for this Docker container, which I’ve been using for a while now!

Cloudflare has probably made some changes on their end; the script hasn’t been running for four days now. The container keeps crashing over and over.

Here is the log:

Session REDACTED loaded successfully
Cloudflare protection detected. Resolving challenge using FlareSolverr. This may take up to a minute.
If you encounter issues with FlareSolverr, please try launching ItchClaim with '--flaresolverr-log-level DEBUG'.
Traceback (most recent call last):
  File "/app/ItchClaim/flaresolverr/flaresolverr/flaresolverr_service.py", line 250, in resolve_challenge
    return func_timeout(timeout, _evil_logic, (req, driver, method))
  File "/usr/local/lib/python3.13/site-packages/func_timeout/dafunc.py", line 101, in func_timeout
    raise FunctionTimedOut('', timeout, func, args, kwargs)
func_timeout.exceptions.FunctionTimedOut: Function _evil_logic (args=(<ItchClaim.flaresolverr.flaresolverr.dtos.V1RequestBase object at 0x7fd852f341a0>, <ItchClaim.flaresolverr.flaresolverr.undetected_chromedriver.Chrome (session="9f06f2dcac6b8b5d159de89b8e01116c")>, 'GET')) (kwargs={}) timed out after 60.000000 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/app/itchclaim.py", line 6, in <module>
    main()
    ~~~~^^
  File "/app/ItchClaim/__main__.py", line 270, in main
    Fire(ItchClaim)
    ~~~~^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/fire/core.py", line 135, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/usr/local/lib/python3.13/site-packages/fire/core.py", line 468, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
                                ~~~~~~~~~~~~~~~~~~~^
        component,
        ^^^^^^^^^^
    ...<2 lines>...
        treatment='class' if is_class else 'routine',
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        target=component.__name__)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/app/ItchClaim/__main__.py", line 73, in __init__
    self.login(login, password, totp)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/ItchClaim/__main__.py", line 255, in login
    if not self.user.validate_session():
           ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/app/ItchClaim/ItchUser.py", line 123, in validate_session
    r = self.s.get('https://itch.io/')
  File "/app/ItchClaim/CfWrapper.py", line 64, in get
    return self._request_with_cf_handling(self.session.get, url, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/ItchClaim/CfWrapper.py", line 88, in _request_with_cf_handling
    self._refresh_cf_cookies()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/app/ItchClaim/CfWrapper.py", line 113, in _refresh_cf_cookies
    cf_challange = flaresolverr.resolve_challenge(cf_challange_data, "GET")
  File "/app/ItchClaim/flaresolverr/flaresolverr/flaresolverr_service.py", line 252, in resolve_challenge
    raise Exception(f'Error solving the challenge. Timeout after {timeout} seconds.')
Exception: Error solving the challenge. Timeout after 60.0 seconds.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions