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

max recursion with use of memoize decorated function #4

Open
dmartin35 opened this issue Mar 2, 2021 · 0 comments
Open

max recursion with use of memoize decorated function #4

dmartin35 opened this issue Mar 2, 2021 · 0 comments

Comments

@dmartin35
Copy link
Owner

When fetching odds from external api
external/odds/betclic/api.py get_odds
we end up with the following error

Exception possibly due to cache backend.
Traceback (most recent call last):
  File "/home/pronosfoot/.python/venv/pronosfoot/lib/python3.6/site-packages/memoize/__init__.py", line 368, in decorated_function
    timeout=decorated_function.cache_timeout
  File "/home/pronosfoot/.python/venv/pronosfoot/lib/python3.6/site-packages/memoize/__init__.py", line 107, in set
    self.cache.set(key=key, value=value, timeout=timeout)
  File "/home/pronosfoot/.python/venv/pronosfoot/lib/python3.6/site-packages/django/core/cache/backends/locmem.py", line 56, in set
    pickled = pickle.dumps(value, self.pickle_protocol)
  File "/home/pronosfoot/.python/venv/pronosfoot/lib/python3.6/site-packages/bs4/element.py", line 912, in __getnewargs__
    return (str(self),)
RecursionError: maximum recursion depth exceeded while calling a Python object

A quick look at the issues on the django-memoize project did not show the same issue listed
https://github.com/unhaggle/django-memoize

Can it be because we're using an outdated version of django ?

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