adapter-node-http: Passthrough requests are made twice when intercepted
See original GitHub issueWhen adapter-node-http
is connected and the client server is used to intercept and passthrough requests, the passthrough requests are fired two times. I suspect this is because the original request created in https://github.com/Netflix/pollyjs/blob/master/packages/%40pollyjs/adapter-node-http/src/-private/transport-wrapper.js#L212 has a real socket attached and it is not destroyed when passthrough creates a completely new request from the original request options.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Node HTTP Request adapter with Request js lib ... - GitHub
@offirgolan offirgolan mentioned this issue on Jan 15, 2019. adapter-node-http: Passthrough requests are made twice when intercepted #161.
Read more >Intercept the same API call multiple times in Cypress
In my case I made multiple post request to the same route but with a slightly different body. So I ended up doing...
Read more >CORS — Story of requesting twice - codeburst
Simple requests. These are requests that doesn't send it's first request as method OPTIONS. It is fired only once. But before that let...
Read more >A Practical Guide to Intercepting Network Requests in Cypress
Our .intercept() command is now matching any request that contains the url /api/boards . You can see this in a screenshot below.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@offirgolan just confirmed that 30ff3f265d02d4d1a8ba606707ba5341610eb61c fixes the issue for me as well 🎉
@offirgolan yes, it seems #166 fixes this issue 🎉