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
Puppeteer FileChooser.accept is not able to find files uploaded to browserless #877
Comments
TL;DR: All puppeteer versions seem to validate that the files being uploaded are on the file-system that puppeteer resides on (not on the remote file-system for browserless' case). You can run whatever version of browserless you want, so long as your puppeteer version is 3.0.0 or less -- and you don't need to upload the files to the docker container of browserless prior! Long: Starting in 3.0.1, puppeteer no longer reads these files into chromium via data-URI's. Instead, it opts to let chromium read them from the file-system, which breaks |
You can also read this comment which has another potential workaround: puppeteer/puppeteer#4405 (comment) |
I wanted to follow up on this and note that 2.1.1 is likely the best version of puppeteer to use w/ fileChooser in this way. 2.0.0 has the multiple connections bug because it ships w/ an incompatible version of chromium Also, if you're NOT using file choose, and uploading via |
Describe the bug
Browserless is unable to find my uploaded file when using puppeteer's fileChooser.accept method
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected behavior is that the file is uploaded properly. This works when running puppeteer headless w/out browserless. Instead, I receive the error:
ENOENT: no such file or directory, open '/usr/src/app/workspace/form.pdf
Desktop (please complete the following information):
Additional context
Attempted the exact script attached on puppeteer 5.0.0 and browserless/chrome:1.36.0-puppeteer-5.0.0 run with the command
docker run --rm -p 3001:3000 -e "CONNECTION_TIMEOUT=600000 MAX_CONCURRENT_SESSIONS=10 USE_CHROMLE=true" browserless/chrome:1.36.0-puppeteer-5.0.0
I've gotten the same error prior when attempting w/ puppeteer 2.1.1 as well
The text was updated successfully, but these errors were encountered: