JFK
JFK
CDCloudflare Developers
Created by JFK on 9/16/2024 in #browser-rendering-api
"The "Download PDF" button triggers a
that was just a testing website. The website I'm actually interested in does not display the data in the code. It only triggers a download that I fail to intercept. AI: "The error you're encountering: Error capturing PDF buffer: Could not load body for this request. This might happen if the request is a preflight request. occurs because Puppeteer cannot access the response body of a download initiated by the browser. When a response includes a Content-Disposition: attachment header (which is used for file downloads), Puppeteer doesn't provide access to the response body via response.buffer(). This is a known limitation due to how browsers handle file downloads—they treat them differently from regular HTTP responses, and the response body isn't exposed to the page's JavaScript context or Puppeteer."
2 replies
CDCloudflare Developers
Created by JFK on 9/16/2024 in #browser-rendering-api
"The "Download PDF" button triggers a
so this is my approach but with a test-website that I'm not actually interested in. Would greatly appreciate any ideas, I've been stuck on this for days
2 replies