JsonDecodeError
when decoding response for gmail messages.get method
#496
Labels
JsonDecodeError
when decoding response for gmail messages.get method
#496
Hi,
I am using the
google-gmail1
crate and trying to get the content of some mail by making amessages.get
call but it fails at the decoding step with the following message (I cut the message short since it contains some sensitive info) :Digging into the error it seems it fails to decode the
data
part of theMessagePartBody
which is said to be base64url.I looked around and found a bunch of issues related to this. I also found issue #446 which I understand is supposed to be a fix for this kind of problem. Unfortunately it does not seems like it works for this request. Maybe it even broke it since it seems the fix replaced the previous
urlsafe_base64
decoder with thestandard_base64
altogether.Is this analysis correct ? Are there any ideas on how to fix the issue ?
The text was updated successfully, but these errors were encountered: