question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

adapter-node-http: Passthrough requests are made twice when intercepted

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dustinsoftwarecommented, Jan 28, 2019

@offirgolan just confirmed that 30ff3f265d02d4d1a8ba606707ba5341610eb61c fixes the issue for me as well 🎉

1reaction
straxcommented, Jan 28, 2019

@offirgolan yes, it seems #166 fixes this issue 🎉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found