question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

page.goto is stuck on some websites on firebase cloud functions

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 1.13.0
  • Platform / OS version: Google Cloud
  • URLs (if applicable):
  • Node.js version: 8
  • 2GB

A bit more information:

  • I tried literally all versions of puppeteer starting from 1.1.0 to 1.14.0
  • the problem occurs only in google cloud (cloud functions). it works on any other cloud platform or locally.
  • My website has ssl error.

What steps will reproduce the problem?

Please include code that reproduces the issue.

await.page.goto(“somewebsite.com”)

What is the expected result? Page expected to be loaded.

What happens instead? Instead I receive timeout in google cloud.

I didn’t share the code because there is no problem with running it locally or on AWS.

I am stuck on this for few weeks already. The website does not load ONLY on Google Cloud however it does load locally or in AWS lambda. The problem is that the error is not helpful at all, the page.goto is just timing out.

Navigation Timeout Exceeded

I was wondering if there is a proper way to debug this. Could it be OS issue? but then again, AWS and Google cloud are both Linux based?

Note: After opening a ticket on google cloud support, I was redirected to firebase support. Looks like its firebase related

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
gamesbykevincommented, Apr 9, 2019

I previously submitted a ticket to support and I no longer receive the error They mentioned my memory usage and suggested I increase from 512mb to 1GB In addition node 8 was previously in beta and recommended to run in node 6, I don’t think node 8 is beta anymore They also told me that node 8 and node 6 were running on a different linux OS behind scenes I also copied my function to a new one

0reactions
BenMosescommented, Dec 3, 2020

I am having the exact same issues and this is my code - No idea what to do. Contacted firebase and they say they’re not puppeteer experts and so can’t help 😢

exports.exampleBug = functions
  .region("europe-west2")
  .runWith({ timeoutSeconds: 300, memory: "2GB" })
  .pubsub.schedule("05 17 * * *")
  .timeZone('Europe/London')
  .onRun(async (/*context*/) => {
    const puppeteer = require("puppeteer");
    const browser = await puppeteer.launch({
          args: ["--no-sandbox", "--disable-setuid-sandbox"],
    });
    const page = await browser.newPage()
    console.log('navigate');
    await page.goto("https://publicaccess.aylesburyvaledc.gov.uk/online-applications/search.do?action=weeklyList");
    console.log('success');
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

page.goto freezes on Google Cloud Functions for some ...
await.page.goto("https://somewebsite.com") freezes when I deploy it on Google Cloud functions. I receive timeout error.
Read more >
React Page to PDF creator using Puppeteer, Express and ...
I recently found myself needing to allow users of a website I was building for a client to download content as a PDF...it...
Read more >
Headless Chrome: an answer to server-side rendering JS sites
Headless Chrome can be a drop-in solution for turning dynamic JS sites into static HTML pages. Running it on a web server allows...
Read more >
Discovery and Service Mapping Patterns release notes
The Discovery of GCP Resources is unable to create relationships between a few resources, i.e., buckets, cloud function, and SQL instances. There are ......
Read more >
Troubleshooting build errors | Cloud Build Documentation
Permission denied error when deploying on Cloud Functions ... This page provides troubleshooting strategies as well as solutions for some common error ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found