In langchain_google_community there is an issue with GmailToolkit Search #29501
Honolulu578
announced in
Ask Dosu (Archived)
Replies: 1 comment 1 reply
-
I would do this instead: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Failed to interact with Gmail agent: 'utf-8' codec can't decode byte 0xa9.
Issue lies in _parse_messages method, you can see there is already a try/except block for multipart messages (i.e., it falls back to "latin-1" if decoding with UTF-8 fails). However, if the message is not multipart, it always uses UTF-8—and that is what triggers the exception for non-UTF8 data.
If the email data is not truly UTF-8, a UnicodeDecodeError will crash here, because there is no fallback like in the multipart case.
Beta Was this translation helpful? Give feedback.
All reactions