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

RecursionError: maximum recursion depth exceeded while calling a Python object #1661

Closed
ukanga opened this issue Jul 24, 2019 · 0 comments · Fixed by #1662
Closed

RecursionError: maximum recursion depth exceeded while calling a Python object #1661

ukanga opened this issue Jul 24, 2019 · 0 comments · Fixed by #1662
Assignees

Comments

@ukanga
Copy link
Member

ukanga commented Jul 24, 2019

https://sentry.onalabs.org/ona/core-api-india/issues/73831/

RecursionError: maximum recursion depth exceeded while calling a Python object
(921 additional frame(s) were not displayed)
...
  File "onadata/libs/utils/cache_tools.py", line 41, in safe_key
    return safe_key(key.replace(" ", "-"))
  File "onadata/libs/utils/cache_tools.py", line 41, in safe_key
    return safe_key(key.replace(" ", "-"))
  File "onadata/libs/utils/cache_tools.py", line 41, in safe_key
    return safe_key(key.replace(" ", "-"))
  File "onadata/libs/utils/cache_tools.py", line 41, in safe_key
    return safe_key(key.replace(" ", "-"))
  File "onadata/libs/utils/cache_tools.py", line 39, in safe_key
    valid_key_chars_re = re.compile("[\x21-\x7e\x80-\xff]+$")

RecursionError: maximum recursion depth exceeded while calling a Python object

Aha! Link: https://ona.aha.io/features/PROD-226

@ukanga ukanga self-assigned this Jul 24, 2019
lincmba pushed a commit that referenced this issue Jul 24, 2019
* Use hashed keys for safe cache keys

Prevents maximum recursion depth error.

Fixes #1661

* Update tests to use safe_key() for cache keys
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

Successfully merging a pull request may close this issue.

1 participant