Closed niconicoj closed 3 months ago
Thanks for reporting. The problem is that some endpoints need URLsafe base64, others need the normal one and it's unclear which one to pick by looking at the API description. At least that's the assumption right now, which is why either way it's going to be wrong for some.
I've just encountered this same issue. Would it be possible to infer it from the documentation?
I'm trying to navigate through how the project works and it looks possible. For example https://gmail.googleapis.com/$discovery/rest?version=v1 mentions base64url
and standard base64
in the description
I've opened #507 with a fix for this
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 ?