-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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]: Cannot transfer files larger than 50Mb to a browser not co-located with the server #34192
Comments
same fingerprint browser,Puppeteer can upload more than 50M file。if you say it is google question,the probably using something like connectOverCDP()。so please tell me ,how i can upload more than 50M file .After all, Puppet can achieve |
I want to emphasize that Puppet can meet these requirements. I hope you don't casually close the issue and blame it on Google Chrome, at least provide a solution |
I had the same problem and hope to get some ideas |
Hi folks! This limit is only put in place for non-local browsers, because of network limits in how CDP communicates. If you run the browser locally, so without |
Hi, I am opening a local browser and my cookie is stored in an app, so I am using WS to open a browser。 |
For local browsers, try |
@Skn0tt,my ws address is ws://127.0.0.1:4805/devtools/browser/e8e89710-ef27-4a86-a586-9e8dbcdfc0af,I use it to launch my browser,it is not a directory |
The CDP-based approach has the upload limitations you hit. If you want to upload big files, use |
@Skn0tt ,ws://127.0.0.1:4805/devtools/browser/e8e89710-ef27-4a86-a586-9e8dbcdfc0af |
It seems that you are not aware of this issue, and Playwright currently does not have a solution。You attribute him to CDP restrictions,What I need to clarify is that Puppeteer can meet this requirement |
please keep open about the Issues,let other give us some Suggestions or solutions。thank you。@Skn0tt |
Version
1.49.0
Steps to reproduce
I am confident that this is a problem with Playwright, with the same browser and environment. The same CDP is used, but Puppet is fine, but Playwright is not。Please take this issue seriously
Here is my code:
return await Puppeteer.ConnectAsync(new ConnectOptions()
{
BrowserWSEndpoint = endpointURL,
DefaultViewport = null
});
playwright not:
return await playwright.Chromium.ConnectOverCDPAsync(
wsEndpointUrl,
new BrowserTypeConnectOverCDPOptions { Timeout = 10 * 60 * 1000 });
}
same fingerprint browser,Puppeteer can upload more than 50M file。if you say it is google question,the probably using something like connectOverCDP()。so please tell me ,how i can upload more than 50M file .After all, Puppet can achieve
Expected behavior
My implementation requirement is to connect Playwright to a fingerprint browser using CDP. Puppeteer can perfectly meet this requirement by uploading files over 100M, but Playwright cannot meet this requirement as he can only upload files smaller than 50M. Is this a problem with Google Chrome? Puppeteer. Firefox,Puppeteer. Webkit,Puppeteer. Google , Not even possible Why does Puppet work, but Playwright doesn't。
Puppeteer ConnectAsync code:
public async Task ConnectAsync(ConnectOptions options)
{
if (options == null)
{
throw new ArgumentNullException(nameof(options));
}
EnsureSingleLaunchOrConnect();
if (!string.IsNullOrEmpty(options.BrowserURL) && !string.IsNullOrEmpty(options.BrowserWSEndpoint))
{
throw new PuppeteerException("Exactly one of browserWSEndpoint or browserURL must be passed to puppeteer.connect");
}
Connection connection = null;
try
{
var browserWSEndpoint = string.IsNullOrEmpty(options.BrowserURL)
? options.BrowserWSEndpoint
: await GetWSEndpointAsync(options.BrowserURL).ConfigureAwait(false);
}
catch (Exception ex)
{
connection?.Dispose();
throw new ProcessException("Failed to create connection", ex);
}
Actual behavior
When uploading large file, about 100MB, page.SetFilesAsync fails
Additional context
I saw someone ask a issues before two years ago。#3768
but there is no follow-up solution available
Environment
The text was updated successfully, but these errors were encountered: