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

handle UnicodeDecodeError #491

Merged
merged 1 commit into from
Jan 15, 2025
Merged

handle UnicodeDecodeError #491

merged 1 commit into from
Jan 15, 2025

Conversation

movy
Copy link
Contributor

@movy movy commented Dec 29, 2024

Today out of the blue all my instances failed to restart with the following error:

      '  File "/home/ubuntu/jesse-bot/lib/python3.11/site-packages/jesse/services/cache.py", line 95, in <module>\n' +
      '    cache = Cache("storage/temp/")\n' +
      '            ^^^^^^^^^^^^^^^^^^^^^^\n' +
      '  File "/home/ubuntu/jesse-bot/lib/python3.11/site-packages/jesse/services/cache.py", line 23, in __init__\n' +
      '    self.db = pickle.load(f)\n' +
      '              ^^^^^^^^^^^^^^\n' +
      "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x95 in position 67: invalid start byte\n" +
      '\n' +

Adding UnicodeDecodeError to handled exceptions helped.

Today out of the blue all my instances failed to restart with the following error:

```python
      '  File "/home/ubuntu/jesse-bot/lib/python3.11/site-packages/jesse/services/cache.py", line 95, in <module>\n' +
      '    cache = Cache("storage/temp/")\n' +
      '            ^^^^^^^^^^^^^^^^^^^^^^\n' +
      '  File "/home/ubuntu/jesse-bot/lib/python3.11/site-packages/jesse/services/cache.py", line 23, in __init__\n' +
      '    self.db = pickle.load(f)\n' +
      '              ^^^^^^^^^^^^^^\n' +
      "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x95 in position 67: invalid start byte\n" +
      '\n' +
```

Adding `UnicodeDecodeError` to handled exceptions helped.
@saleh-mir saleh-mir merged commit 5ecc58f into jesse-ai:master Jan 15, 2025
0 of 3 checks passed
@saleh-mir
Copy link
Member

thanks!

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 this pull request may close these issues.

2 participants