puppeteer: Aborting long-hanging req.continue() when interception is enabled

Is there any way to abort an already continue()d request? It’s obviously not possible to use abort() or respond() as we get an error Request is already handled!.

We are seeing various blocking Javascript just simply “not respond” at all when we have interception enabled. How can we interrupt and kill these attempts?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Thanks @aslushnikov for your help.

The prebuilt binary works when running locally without the issues we experienced.

Putting it on Lambda is messy as we need to also include various missing shared libraries. In the process of doing that, we discovered what looks to be the solution to our original problem. (We’d prefer to build our own Chrome anyway to avoid a tricky “5th invocation error” unique to Lambda.)

Adding swiftshader/ and its two shared object files to our Lambda deployment in the same directory as headless-shell was the solution to avoid the issues we were having. No idea why.