-
-
Notifications
You must be signed in to change notification settings - Fork 443
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
Can't get octet-stream response | net::ERR_ABORTED #2114
Comments
I'm not sure if it's appropriate to mention the exact service that I'm trying to scrap bypassing the cloudflare, and how to reproduce the exact same request, but, if you'll need that data, just tell me. |
|
What do you mean by new headless mode? |
Ah, never knew about it. Thanks, I'll try it today. |
You can try that out in puppeteer (node.js). We need to make a few changes to support this in .NET |
For
You should be able to set the download path to achieve the same behaviour. Browser.setDownloadBehavior allows for specifying a folder for downloads. Puppeteer itself doesn't yet support any of the download related methods/events
I'd be very surprised if |
In headless mode it just won't start download at all, so it's doesn't really matter. |
Sorry, I was wrong. I've simply set |
Well, my problem is solved on this rate. Thanks for the tip. Though, I'm not sure if this issue should be closed or not. You say it's a Chromium problem in the first place, not a Puppeteer, but maybe at least it should be handled some other way? With more obvious exception type. |
Description
When I try to
GoToAsync
on a page that responds with aapplication/octet-stream
content type:PuppeteerSharp.NavigationException: net::ERR_ABORTED
.Minimal example reproducing the issue
Expected behavior:
As I know that in my particular case, this
application/octet-stream
response actually is just a text string without extension, I expect thatvar content
will have this text data.For example,
works absolutely fine, but sadly I can't use it because of a cloudflare protection. I've tested it in my normal browser, and it worked, but failed with
EvaluateFunctionAsync
.Actual behavior:
As I mentioned, in non-headless mode I actually still can get needed data, though I'll need to
catch
this exception and open it (data) as a file from my download directory. But I really need it to work in headless mode.Versions
9.0.2 / net7.0
The text was updated successfully, but these errors were encountered: