You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using poem-openapi and need to accept some base64 public keys for webpush subscriptions -- the format I'm primarily testing with would fit the base64::engine::general_purpose::URL_SAFE_NO_PAD engine but it seems to be defaulting to base64::engine::general_purpose::STANDARD.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using poem-openapi and need to accept some base64 public keys for webpush subscriptions -- the format I'm primarily testing with would fit the
base64::engine::general_purpose::URL_SAFE_NO_PAD
engine but it seems to be defaulting tobase64::engine::general_purpose::STANDARD
.Depending on the base64 format I use I get one of the following errors:
parse request payload error: failed to parse "string(bytes)": Invalid padding (occurred while parsing "PushSubscription")
parse request payload error: failed to parse "string(bytes)": Invalid byte 45, offset 45. (occurred while parsing "PushSubscription")
Two questions:
Beta Was this translation helpful? Give feedback.
All reactions