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

Headless chrome app engine runs locally but not on app engine #681

Closed
shaunc869 opened this issue Jul 4, 2018 · 2 comments
Closed

Headless chrome app engine runs locally but not on app engine #681

shaunc869 opened this issue Jul 4, 2018 · 2 comments

Comments

@shaunc869
Copy link

When I pull down the stock example under /appengine/headless chrome and run it locally it works fine. If I upload it to app engine and try to run it I get:

A (node:6) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
A (node:6) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
A at
A at Function.launch (/srv/node_modules/puppeteer/lib/Launcher.js:116:40)
A at Object.exports.spawn (child_process.js:502:9)
A at ChildProcess.spawn (internal/child_process.js:323:11)
A at _errnoException (util.js:992:11)
A (node:6) UnhandledPromiseRejectionWarning: Error: spawn EACCES
A App listening on port 8080
A (node:6) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
A (node:6) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
A at
A at Function.launch (/srv/node_modules/puppeteer/lib/Launcher.js:116:40)
A at Object.exports.spawn (child_process.js:502:9)
A at ChildProcess.spawn (internal/child_process.js:323:11)
A at _errnoException (util.js:992:11)
A (node:6) UnhandledPromiseRejectionWarning: Error: spawn EACCES
A App listening on port 8080
A (node:6) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
A (node:6) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
A at
A at Function.launch (/srv/node_modules/puppeteer/lib/Launcher.js:116:40)
A at Object.exports.spawn (child_process.js:502:9)
A at ChildProcess.spawn (internal/child_process.js:323:11)
A at _errnoException (util.js:992:11)
A (node:6) UnhandledPromiseRejectionWarning: Error: spawn EACCES
A App listening on port 8080

It looks like an access error on the part of Chrome. Thanks for the help!

@clpacheco90
Copy link

it's not working for me too

@steren
Copy link
Contributor

steren commented Jul 23, 2018

I could not reproduce.
For me, the sample runs without issues:

$ git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
$ cd nodejs-docs-samples/appengine/headless-chrome/
$ gcloud app deploy app.standard.yaml

Open the deployed URL and add ?url=https://example.com to it.

Can you confirm it still does not work for you?
Can you provide exact repro steps?

@fhinkel fhinkel closed this as completed Nov 8, 2018
NimJay pushed a commit that referenced this issue Nov 10, 2022
* chore(main): release 5.0.2

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
NimJay pushed a commit that referenced this issue Nov 10, 2022
* chore(main): release 5.0.2

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
ace-n pushed a commit that referenced this issue Nov 17, 2022
ace-n pushed a commit that referenced this issue Nov 17, 2022
ace-n pushed a commit that referenced this issue Nov 17, 2022
ace-n pushed a commit that referenced this issue Nov 17, 2022
ace-n pushed a commit that referenced this issue Nov 17, 2022
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

4 participants