Closed lprintf closed 3 years ago
Thanks for creating this issue and the explanation!
I have two questions after reviewed the PR and read the links that you provided:
Remove puppeteer-core from your dependencies.
suggestion from issue 471?executablePath: '/usr/bin/chromium-browser'
to puppeteer options?Yes, This is not a good way to solve the problem only avoid it temporarily. But this project is not dependented puppeteer derectly. A better solution is to update the puppeteer of wechaty. And there is a debug script disscuss more. Let me try more.
emmm, I use the endpoint: '/usr/bin/chromium-browser'
and solve this problem. I will try more before commit in the future.
Great to know that you have solved this problem by setting the puppetOptions
.
It would be great if you can write your solution by adding a TroubleShooting
section in the README so that it can help future developers who run into the same issue that you have.
Great to know that you have solved this problem by setting the
puppetOptions
.It would be great if you can write your solution by adding a
TroubleShooting
section in the README so that it can help future developers who run into the same issue that you have.
OK, it have been record. And I have updated the PR #79 now.
When I install dependency in wechaty-puppet-wechat, It will install chrominum automaticly and needn't set chromium path by myself. But set the chromium path manually is a easy way to solve this problem.
> puppeteer@7.1.0 install /home/ylin/Documents/wechaty-puppet-wechat/node_modules/puppeteer
> node install.js
Downloading Chromium r848005 - 138.2 Mb [====================] 100% 0.0s
Chromium (848005) downloaded to /home/ylin/Documents/wechaty-puppet-wechat/node_modules/puppeteer/.local-chromium/linux-848005
> core-js@3.15.2 postinstall /home/ylin/Documents/wechaty-puppet-wechat/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Failed to Start PuppetWeChatBridge with the Envirenment X64.
Self-Diagnosis
Environment(for bug reports)
My configuration/Related code
WECHATY_PUPPET=wechaty-puppet-wechat
Steps to Reproduce the Issue
run
WECHATY_PUPPET=wechaty-puppet-wechat LOG_LEVEL=silly ts-node bin/matrix-appservice-wechaty.ts --config config/config.yaml --file wechaty-registration.yaml
directly in centos7 x64Current Result (Include screenshots where appropriate.)
Expected Result
I will propose a pull request after my last pull request haved been deal if appropriate. If it is not appropriate, please stop me and point my faults.
Further explanation:
It seem a bug about puppeteer, and similliar to https://github.com/berstend/puppeteer-extra/issues/471 and https://stackoverflow.com/questions/53997175/puppeteer-error-chromium-revision-is-not-downloaded.
I have avoid it by install chrome and add some modifications in a commit such as follow:
I am not familiar with the open source project contribution process. I will propose a pull request after my last pull request haved been deal if appropriate.