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 }