From 195d0dd1f8705f3d7ec792e3621558af86581834 Mon Sep 17 00:00:00 2001 From: Ugo Baroncini Date: Sun, 27 Dec 2020 00:10:55 +0100 Subject: [PATCH 1/2] Added `aria2` prerequisite Added a prerequisite for the `aria2` package to be installed when using this version. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f3ae164..2bcbab7 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ Hopefully this doesn't break the end user agreement for Microsoft Stream. Since - **npm**: usually comes with Node.js, type `npm` in your terminal to check for its presence - [**ffmpeg**][ffmpeg]: a recent version (year 2019 or above), in `$PATH` or in the same directory as this README file (project root). - [**git**][git]: one or more npm dependencies require git. +- [**aria2**][aria2]: present in your `$PATH`, on Linux you can install via `sudo apt install aria2`. Destreamer takes a [honeybadger](https://www.youtube.com/watch?v=4r7wHMg5Yjg) approach towards the OS it's running on. We've successfully tested it on Windows, macOS and Linux. From 6d8f3c6ee08624a67756fd11429e7f7b59bf5149 Mon Sep 17 00:00:00 2001 From: Adrian Calinescu Date: Tue, 26 Jan 2021 14:52:23 +0200 Subject: [PATCH 2/2] Fix return HTTP 403 reason with or without verbose (#316) --- src/ApiClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ApiClient.ts b/src/ApiClient.ts index cd14d32..3974be7 100644 --- a/src/ApiClient.ts +++ b/src/ApiClient.ts @@ -34,10 +34,10 @@ export class ApiClient { return true; } logger.warn(`Got HTTP code ${err?.response?.status ?? undefined}. Retrying request...`); - logger.verbose('Here is the error message: \n' + + logger.warn('Here is the error message: \n' + JSON.stringify(err.response?.data ?? undefined) + '\nRetrying request...'); - logger.verbose(`We called this URL: ${err.response?.config.baseURL}${err.response?.config.url}`); + logger.warn(`We called this URL: ${err.response?.config.baseURL}${err.response?.config.url}`); const shouldRetry: boolean = retryCodes.includes(err?.response?.status ?? 0);