I'm encountering an issue while attempting to receive a zip file as a blob from an HTTP POST request. However, the resolved post method overload is not what I expected.
const options = {
responseType: 'blob' as const
};
Observable<Blob> blob = this.http.post<Blob>(path, data, options)
.pipe(
catchError(this.handleError)
);
Instead of getting the desired result, it appears that the method always resolves to the alternative post method overload that returns Observable<ArrayBuffer>
If anyone has any insights or solutions for me, I would greatly appreciate the help. My Angular version is ~9.1.1
and I keep receiving
error TS2769: No overload matches this call.