An issue has occurred with the type mismatch in the error handling function. It seems that the argument provided is not compatible with the expected parameter type within the Observable structure.
GetFullAddress(addressModel: FullAddressLookupModel): Observable<AddressModel> {
return this.httpClient.post<AddressModel>(this.Domain + "api/addressSearch/confirmAddressSelection",
JSON.stringify(addressModel), this.httpOptions ).pipe(
catchError(this.handleError)
);
}
private handleError(error: HttpErrorResponse) {
return throwError(
'Something bad happened; please try again later.');
}