Skip to content

Conversation

@hucruz
Copy link

@hucruz hucruz commented Aug 11, 2025

fix: store session bytes as base64 to avoid encoding errors

Previously, session fields of type bytes were serialized as UTF-8 strings or
Python literal representations (e.g., b'...'), causing validation errors
(bytes_invalid_encoding) when attempting to restore the data.

This change ensures that all byte values are encoded in base64 when saving, guaranteeing compatibility with Pydantic and
other session consumers.

@BloodBoy21 BloodBoy21 merged commit 9116633 into BloodBoy21:feat-redis-session Aug 11, 2025
1 of 4 checks passed
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