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

UnicodeDecodeError #27

Closed
WilliamsTravis opened this issue Oct 19, 2022 · 1 comment
Closed

UnicodeDecodeError #27

WilliamsTravis opened this issue Oct 19, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@WilliamsTravis
Copy link
Collaborator

WilliamsTravis commented Oct 19, 2022

Bug Description
Receiving this error when reading both chart and map table. Possibly due to moved cached folder. Breaks completely in debug mode, but some sort of exception handler in production reloads the file and it works, though the error is still thrown.

Full Traceback

  File "/Users/twillia2/github/reView/reView/utils/classes.py", line 181, in _callback_func
    return func(*args, **kwargs)
  File "/Users/twillia2/github/reView/reView/pages/rev/controller/callbacks.py", line 764, in figure_chart
    dfs = cache_chart_tables(signal_dict, region)
  File "/Users/twillia2/anaconda3/envs/review/lib/python3.9/site-packages/flask_caching/__init__.py", line 834, in decorated_function
    cache_key = decorated_function.make_cache_key(f, *args, **kwargs)
  File "/Users/twillia2/anaconda3/envs/review/lib/python3.9/site-packages/flask_caching/__init__.py", line 591, in make_cache_key
    fname, version_data = self._memoize_version(
  File "/Users/twillia2/anaconda3/envs/review/lib/python3.9/site-packages/flask_caching/__init__.py", line 541, in _memoize_version
    version_data_list = list(self.cache.get_many(*fetch_keys))
  File "/Users/twillia2/anaconda3/envs/review/lib/python3.9/site-packages/cachelib/base.py", line 49, in get_many
    return [self.get(k) for k in keys]
  File "/Users/twillia2/anaconda3/envs/review/lib/python3.9/site-packages/cachelib/base.py", line 49, in <listcomp>
    return [self.get(k) for k in keys]
  File "/Users/twillia2/anaconda3/envs/review/lib/python3.9/site-packages/flask_caching/backends/filesystemcache.py", line 120, in get
    pickle_time = pickle.load(f)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 3: invalid start byte
@WilliamsTravis WilliamsTravis added the bug Something isn't working label Oct 19, 2022
@WilliamsTravis
Copy link
Collaborator Author

This was a cache problem....fixed by storing the cache consistently in ~/.review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant