Skip to content

Commit

Permalink
Fixed ERROR no headers found in message occurring every minute
Browse files Browse the repository at this point in the history
  • Loading branch information
aamosljp committed Sep 19, 2023
1 parent 6a47d7d commit 5130d07
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gosmee/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,15 @@ func (c goSmee) clientSetup() error {
return
}

if string(msg.Event) == "ping" {
return
} /* Without this we get
* "ERROR no headers found in message"
* because apparently github sends
* a ping every minute but it's not
* documented anywhere for some reason
*/

pm, err := c.parse(now, msg.Data)
if err != nil {
fmt.Fprintf(os.Stdout,
Expand Down

0 comments on commit 5130d07

Please sign in to comment.