You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can add additional interceptors but can't replace or extend the OOTB implementation.
I think that overriding it is supposed to be possible due to the following statement in the documentation
The composable storefront HttpErrorHandlerInterceptor treats all outbound HTTP as a reason to make SSR fail.
However, if this assumption is not true for your application, you can customize it by over-providing the composable storefront HttpErrorHandlerInterceptor.
Describe the solution you'd like
The service is provided with useClass and it doesn't have the providedIn: 'root' annotation.
@Injectable()
export class HttpErrorHandlerInterceptor implements HttpInterceptor {
Is your feature request related to a problem? Please describe.
Related to new feature Server-Side Rendering Error Handling
We can add additional interceptors but can't replace or extend the OOTB implementation.
I think that overriding it is supposed to be possible due to the following statement in the documentation
Describe the solution you'd like
The service is provided with
useClass
and it doesn't have theprovidedIn: 'root'
annotation.I would like to replace it like so:
The
WithCredentialsInterceptor
is provided in root and injected usinguseExisting
.The following override works
Describe alternatives you've considered
Adding additional interceptors works for now, but multiple errors are logged. E.g. from my SSR logs:
The OutboundHttpError is coming from the base HttpErrorHandlerInterceptor.
The text was updated successfully, but these errors were encountered: