-
Couldn't load subscription status.
- Fork 2k
Description
I was looking at the documentation for Cloud Functions (https://cloud.google.com/functions/docs/concepts/nodejs-10-runtime) and wanted to deploy one of the example functions in this repo, the headless-chrome example. My deploy command was based on what I was reading in the docs site:
gcloud functions deploy screenshot --runtime nodejs10 --trigger-http --project <redacted>
The deploy succeeds, but then in the web browser when I visit the URL, the function displays the expected message if I don't provide the URL query string parameter:
?url=https://example.com
Please provide URL as GET parameter, for example:
But it fails if I do provide a URL query string parameter, displaying the following message in the browser:
Error: could not handle the request
And the following message in the Stackdriver logs for the function:
TimeoutError: Timed out after 30000 ms while trying to connect to Chrome! The only Chrome revision guaranteed to work is r672088 at Timeout.onTimeout (/srv/functions/node_modules/puppeteer/lib/Launcher.js:351:14) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10)
Despite the error message mentioning "30000 ms", this happens within a few seconds.