Open mikicho opened 1 month ago
I have the same issue currently when using @mswjs/interceptors
through nock
. I am currently unable to produce a reproducible example, so it is very difficult to investigate this.
Does anyone have an idea for a workaround until this is fixed? @mikicho maybe?
@marikaner In order to keep this issue clean, I opened an issue in nock
to track this and discuss about workaround (https://github.com/nock/nock/issues/2789)
interceptors
expects the error to be from typeError
inhandleRequest
, which is not required by Node.If the interceptor is applied, the program prints
response
and throws:For real requests, it is called the
error
callback.WDYT?