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

Gmail Search tool does not support non utf-8 encoding #726

Open
darrenwong00 opened this issue Feb 4, 2025 · 0 comments
Open

Gmail Search tool does not support non utf-8 encoding #726

darrenwong00 opened this issue Feb 4, 2025 · 0 comments

Comments

@darrenwong00
Copy link

I am trying to search iso-8859-1 charset encoded emails and I'm getting the following error:

packages/langchain_google_community/gmail/search.py", line 109, in _parse_messages
    message_body = email_msg.get_payload(decode=True).decode("utf-8")  # type: ignore[union-attr]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb7 in position 3240: invalid start byte

Is this by design?

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