-
Notifications
You must be signed in to change notification settings - Fork 66
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
Following up loading really long web page issue... (#85) #86
Comments
I cannot reproduce your issue. There isn't any browser in Deno. When you run single-file-cli/lib/constants.js Lines 105 to 117 in d8d48fa
Is Chromium installed in If you try to pass the height of the screen with the |
I have Google Chrome installed, the Version is 124.0.6367.119 (Official Build) (arm64). So not quite sure why it hung when --browser-executable-path was not specified. It should have picked up Google Chrome, don't have Chromium installed. I can try again. May be the hang was for a different reason. I just tried this: ./single-file https://www.apple.com/airpods-max airpods-max.html --browser-executable-path="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --browser-height=30000 --browser-wait-until="load" and it just hangs... Is this working for you? I do have the latest build with version 2.0.36 ./single-file --version |
Wondering if there is something in your local environment which is not reflected in the build, may be some settings or the default options (we are only overriding browser height and browser wait until), which is still causing it to hang when run directly by downloading the latest release from the git... |
If confirm that the command you mentioned works fine for me (on a Apple M2 with 16GB of RAM). Maybe you should remove |
In both cases with either --browser-wait-until property removed or changed to networkAlmostIdle, it is still stuck. When I Ctrl-C out of it, this is what I see... |
Uncaught (in promise) NotFound: No such file or directory (os error 2): remove '/var/folders/g5/4hp_ppfs47g8gmd1w6xp0_cm0000gn/T/2aad9786888d493' |
the url apple.com works fine with different browser heights, 20K, 30K and 50K. the apple.com/airpods-max, works fine with no height (lots of images are missing, so that won't work), at height 20K it take 6 min but is still missing a lot of images. At height 35K or 50K it just hangs, this is without browser wait delay option. I tried it on another laptop, Apple M2 Pro, same behavior, it hangs at 35K, 50K height. |
Couple of other problems after the fix in version 2.0.36
So this works:
./single-file https://www.apple.com/macbook-air macbook-air.html --browser-executable-path="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --browser-height=50000 --browser-wait-until="load" --load-deferred-images-keep-zoom-level=true
but this hangs when I remove the browser executable path and use Deno
./single-file https://www.apple.com/macbook-air macbook-air.html --browser-height=50000 --browser-wait-until="load" --load-deferred-images-keep-zoom-level=true
./single-file https://www.apple.com/airpods-max airpods-max.html --browser-executable-path="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --browser-height=30000 --browser-wait-until="load" --load-deferred-images-keep-zoom-level=true
hangs..
Thanks
Cheers...
The text was updated successfully, but these errors were encountered: