I run tests with puppeteer in cloud functions.
If I run test on local machine all is fine. If I run tests in cloud functions emulator it's fine as well. But when I deploy my function to the cloud all tests stuck onpage.goto('https://...')
and function fails by timeout, which in my case is 3 minutes.
The problem was in puppeteer. I downgraded from the version 1.13.0 to 1.11.0 and now everything works fine. See the discussion here
来源:https://stackoverflow.com/questions/55274130/cloud-functions-timeout-on-page-goto