diff --git a/handlers/scraper/remote.go b/handlers/scraper/remote.go index fa49eda..45ac029 100644 --- a/handlers/scraper/remote.go +++ b/handlers/scraper/remote.go @@ -93,6 +93,10 @@ func handleConnection(conn net.Conn) { rm.outChan <- err return } + if n == 1 { + rm.outChan <- errors.New("remote scraper returns empty data") + continue + } if err := binary.Unmarshal(outBuf[:n], rm.instaData); err != nil { slog.Error("failed to unmarshal data", "err", err)