Skip to content

TypeError: socket.getPeerX509Certificate is not a function #2416

Answered by kettanaito
stalniy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @stalniy. Thanks for raising this. It's a bug related in compatibility to mswjs/interceptors#675.

Is there a way to mock only 1 particular request an leave others as is?

MSW does precisely that. It does that by integrating into all requests and implementing passthrough by default. What you are encountering is a bug, and I hope we will address it soon. Your expectations of the library are correct.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kettanaito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants