-
Notifications
You must be signed in to change notification settings - Fork 333
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
🐛 BUG: Network Request Response no data available for large responses #1853
Comments
I've transferred this to the |
Hi, are there any updates with this? Is there any way I could help resolving this |
Looks like this is by design: workerd/src/workerd/io/worker.c++ Lines 2253 to 2259 in a1026f6
Buffering really large bodies and then sending them over the JSON-oriented inspector protocol could be problematic. Although maybe the current 1MB limit is smaller than it needs to be? |
Thanks for the quick comment! Correct me if I'm wrong but isn't this only really relevant when running the worker while in local development. I would argue that there should be no limit (at least not a small one), even if there is a performance impact, because otherwise it's way too hard to debug any issues when working with big datasets. That's also because a very similar issue happens when console-logging too much data, it also stops showing anything logged in the devtools (and the output in the terminal is not always useful because it collapses nested objects and arrays). It's possible that I'm also missing something! |
Which Cloudflare product(s) does this pertain to?
Wrangler core, Miniflare
What version(s) of the tool(s) are you using?
3.34.2 [Wrangler]
What version of Node are you using?
20.11.1
What operating system and version are you using?
MacOS Sonoma 14.4
Describe the Bug
Observed behavior
The Network > [specific request] > Response tab in DevTools shows a message stating "This request has no response data available":
This happens when the response is large, I haven't managed to pinpoint exactly when it starts happening.
Expected behavior
The Response tab to show the response that was received in the worker.
Reproduction
The text was updated successfully, but these errors were encountered: