From 31155a9cb409f2d41f66f5730fee8d8eebddc8af Mon Sep 17 00:00:00 2001 From: aamosljp Date: Wed, 20 Sep 2023 16:44:34 +0300 Subject: [PATCH] Fixed ERROR no headers found in message occurring every minute (#116) * Fixed ERROR no headers found in message occurring every minute * Update Dockerfile --- gosmee/client.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gosmee/client.go b/gosmee/client.go index 4a1ea22..5c9c810 100644 --- a/gosmee/client.go +++ b/gosmee/client.go @@ -289,6 +289,13 @@ func (c goSmee) clientSetup() error { return } + if string(msg.Event) == "ping" { + return + } /* 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,