Skip to content

Commit

Permalink
Bugfix - when using AbortController, errors on resulting stream must …
Browse files Browse the repository at this point in the history
…be caught (#539)

* use-native-fetch

* Bugfix: `res.body` should handle errors according to nodejs/undici#3353 (comment)

* Revert "use-native-fetch"

This reverts commit d654603.

* fix-quotes

* some-build-targets-return-different-output
  • Loading branch information
uriva authored Nov 29, 2024
1 parent f2f4990 commit e45516d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/client/http-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class HTTPTracker extends Tracker {
'user-agent': this.client._userAgent || ''
}
})
if (res.body.on) res.body.on('error', cb)
} catch (err) {
if (err) return cb(err)
}
Expand Down

0 comments on commit e45516d

Please sign in to comment.