We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ec91eb commit bd925a3Copy full SHA for bd925a3
lib/client/http-tracker.js
@@ -225,10 +225,12 @@ class HTTPTracker extends Tracker {
225
_onScrapeResponse (data) {
226
// NOTE: the unofficial spec says to use the 'files' key, 'host' has been
227
// seen in practice
228
+ const raw = data
229
data = data.files || data.host || {}
230
231
const keys = Object.keys(data)
232
if (keys.length === 0) {
233
+ console.debug(raw)
234
this.client.emit('warning', new Error('invalid scrape response'))
235
return
236
}
0 commit comments