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

puppeteer 라이브러리 Firebase 연동 에러 #1

Closed
CT-1326 opened this issue Apr 28, 2020 · 2 comments
Closed

puppeteer 라이브러리 Firebase 연동 에러 #1

CT-1326 opened this issue Apr 28, 2020 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@CT-1326
Copy link
Owner

CT-1326 commented Apr 28, 2020

functions[bus(asia-northeast1)]: Deployment error. Function failed on loading user code. Error message: Code in file index.js can't be loaded. Is there a syntax error in your code? Detailed stack trace: TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function at promisify (internal/util.js:214:11) at Object.<anonymous> (/srv/node_modules/extract-zip/index.js:11:18) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object.<anonymous> (/srv/node_modules/puppeteer/lib/BrowserFetcher.js:21:17)

@CT-1326 CT-1326 added bug Something isn't working help wanted Extra attention is needed labels Apr 28, 2020
@stories2
Copy link

puppeteer

구 버전에서 정상작동 확인됨 1.7.0

npm i -save puppeteer@1.7.0

대신 메모리 부족 문제가 생길 수 있어 아래와 같이 최소 동작 메모리 양을 늘려주어야 함.

const runtimeOpts = {
    timeoutSeconds: 60,
    memory: '512MB'
  }
exports.test = functions.runWith(runtimeOpts).region('asia-northeast1').https.onRequest(testApi)

레퍼런스

@stories2
Copy link

관련 이슈

@CT-1326 CT-1326 closed this as completed Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants