+ const { withRetry = false, currentRetry = 1 } = options
+
+ try {
+ const result = await unwrapBody<Buffer>(this.getRawRequest({
+ ...options,
+
+ url: options.url,
+ range: options.range,
+ implicitToken: false,
+ responseType: 'application/octet-stream',
+ defaultExpectedStatus: HttpStatusCode.OK_200
+ }))
+
+ return result
+ } catch (err) {
+ if (!withRetry || currentRetry > 10) throw err
+
+ await wait(250)
+
+ return this.getFragmentedSegment({
+ ...options,
+
+ withRetry,
+ currentRetry: currentRetry + 1
+ })
+ }