Mino changes (#217)

* added Unipr info in the Specialized vesion section

* added response body on API call error (verbose)
This commit is contained in:
lukaarma 2020-09-05 18:03:11 +02:00 committed by GitHub
parent 7fc7c4733a
commit 4545b010b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -17,6 +17,7 @@ This release would not have been possible without the code and time contributed
- [Politecnico di Milano][polimi]: fork over at https://github.com/SamanFekri/destreamer
- [Università di Pisa][unipi]: fork over at https://github.com/Guray00/destreamer-unipi
- [Università della Calabria][unical]: fork over at https://github.com/peppelongo96/UnicalDown
- [Università degli Studi di Parma][unipr]: fork over at https://github.com/vRuslan/destreamer-unipr
## What's new
### v2.2
@ -196,3 +197,4 @@ Please open an [issue](https://github.com/snobu/destreamer/issues) and we'll loo
[polimi]: https://www.polimi.it
[unipi]: https://www.unipi.it/
[unical]: https://www.unical.it/portale/
[unipr]: https://www.unipr.it/

View file

@ -34,6 +34,7 @@ export class ApiClient {
return true;
}
logger.warn(`Got HTTP code ${err?.response?.status ?? undefined}. Retrying request...`);
logger.verbose(`Here is the error message: \n '${err.response?.data}`);
const shouldRetry: boolean = retryCodes.includes(err?.response?.status ?? 0);