Skip to content
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

Times out when creating screenshots #130

Closed
d8vjork opened this issue May 14, 2024 · 2 comments
Closed

Times out when creating screenshots #130

d8vjork opened this issue May 14, 2024 · 2 comments

Comments

@d8vjork
Copy link

d8vjork commented May 14, 2024

image

I just upgraded everything to be on the latest (also using node20) because it was failing on the node18 (using the previous version of this function)

Already tried with several things but no luck, this is the code:

$base64Screenshot = Browsershot::url($temporarySignedUrl)
            ->select('#graphContainer')
            ->windowSize((int) round((int) $this->data->width), (int) round((int) $this->data->height))
            ->waitForSelector('#graphContainer')
            ->setExtraHttpHeaders([
                'ngrok-skip-browser-warning' => '69420',
            ])
            ->waitUntilNetworkIdle(false)
            ->noSandbox()
            ->base64Screenshot();
@stefanzweifel
Copy link
Owner

Thanks for reporting. I currently can't reproduce this issue. :/
Just to confirm, you've upgrade the Lambda function to use Node 20 and updated sidecar-browsershot to the latest version, right?

I see "protocolTimeout" in the error message. Not the first time I heard about this. It came up in #100, but should have been resolved in the latest versions of the packages.


Telling you to increase the timeout doesn't help either. It's already quite high.

@stefanzweifel
Copy link
Owner

Closing this issue as I'm unable to reproduce this error.

@stefanzweifel stefanzweifel closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants