From bd925a31e17617b068f9fc96fe09b9a294ced3da Mon Sep 17 00:00:00 2001 From: phillmac Date: Thu, 6 Feb 2020 13:33:14 +1100 Subject: [PATCH] Update http-tracker.js --- lib/client/http-tracker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/client/http-tracker.js b/lib/client/http-tracker.js index 5f14a37d..97a0a327 100644 --- a/lib/client/http-tracker.js +++ b/lib/client/http-tracker.js @@ -225,10 +225,12 @@ class HTTPTracker extends Tracker { _onScrapeResponse (data) { // NOTE: the unofficial spec says to use the 'files' key, 'host' has been // seen in practice + const raw = data data = data.files || data.host || {} const keys = Object.keys(data) if (keys.length === 0) { + console.debug(raw) this.client.emit('warning', new Error('invalid scrape response')) return }