Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
PuppeteerException("Response body is unavailable for redirect responses") throw outside application flow #891
I'm running into an issue where Puppeteer is throwing exceptions outside of the flow of my application. This means they are getting raised via UnobservedTaskException. This code is running completely and a screenshot is being returned.
Is there a way I can force these exceptions to be raised in my code or a way I can suppress them?
Details of exception being thrown:
Complete minimal example reproducing the issue
Exceptions to be suppressed or thrown in my application context
Exceptions bubbling up threw UnobservedTaskException during finalization
Using this library on AWS Lambda: https://github.com/litmus/HeadlessChromium.Puppeteer.Lambda.Dotnet
That exception comes from the NetworkManager. We are just faulting the
It seems that your setup doesn't like that. I will try to see if I can listen to
Is it something that is blocking you? Do you have a workaround? If it's blocking you I can release a hotfix, if not we could wait to v1.12.
Thank you for your contribution :)
I'm not able to prevent Lambda from logging this to CloudWatch. Their event handler fires before the one I'm registering, so all this did was create duplicate log messages.