Closed cgadam closed 3 years ago
Hi @cgadam in general this won't lead to issue - since promise object in rejected state can't be moved to resolved.
@cgadam I'm closing this at the moment since it looks resolved - please let us know if you have any concerns.
Shouldn't this
reject
have areturn
next to it? Otherwise bothresolve
andreject
gets called leading to unexpected results.https://github.com/microsoft/typed-rest-client/blob/master/lib/Util.ts#L93
Actually I think this is the reason why this other error gets exposed: https://github.com/microsoft/typed-rest-client/issues/272 instead of bubbling up the actual error from the
zlib
library as part of the promise rejection.