Skip to content

Commit

Permalink
jmm
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jan 31, 2025
1 parent 38cdda3 commit 2871b0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers/scraper/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2871b0c

Please sign in to comment.