Skip to content

Commit

Permalink
Also log web encryption key 404 body
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 4, 2023
1 parent 066ba7d commit 6f236ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ func (user *User) Connect() bool {
if err != nil {
user.zlog.Err(err).Msg("Error connecting to Google Messages")
if err.Error() == "failed to get web encryption key: unexpected http 404" {
var httpErr events.HTTPError
if errors.As(err, &httpErr) {
user.zlog.Debug().Bytes("resp_body", httpErr.Body).Msg("404 response body")
}
go user.Logout(status.BridgeState{
StateEvent: status.StateBadCredentials,
Error: GMEncryptionKey404,
Expand Down

0 comments on commit 6f236ea

Please sign in to comment.