New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch.FulfillRequest when body too big,the chromium crashed. #722
Comments
From Rod's doc:
Rod doesn't have this limitation: https://gist.github.com/ysmood/0d5b2c878ecbdb598776af7d3d305b79 Here's how Rod solves it, might help chromedp to improve the way it uses websocket: https://github.com/go-rod/rod/blob/master/lib/cdp/websocket.go |
Oh, thank you very much. |
This is a serious problem, it will prevent us from hijack requests safely |
Is there a way to solve this? Any workaround or something ? |
I determine the body size, if it is larger than 1MB, use Fetch. continueRequest |
Hitting the same error when trying to fulfill a response with size of 978KB
|
Please check this PR: #782. It's not ready for merge yet, but you can adopt the workaround with the |
The PR has been merged. Closing. |
What versions are you running?
What did you do? Include clear steps.
I use fetch.FulfillRequest to modify the http response:
but when the respBody is too big (961kb), the chromium crashed!
2020/12/04 15:23:38 ERROR: write tcp 127.0.0.1:53546->127.0.0.1:37910: write: broken pipe
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: