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.

"Did not get to load all resources on this page"

See original GitHub issue

When using Zombie on a long running process (24+ hours) I occasionally run in to this error:

Error: Timeout: did not get to load all resources on this page
    at /node_modules/zombie/lib/index.js:1383:14
    at done (/node_modules/zombie/lib/eventloop.js:554:7)
    at timeout (/node_modules/zombie/lib/eventloop.js:543:31)
    at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)

Once this error appears, all subsequent Zombie requests fail. Restarting the server resolves the issue.

Here’s our implementation of Zombie:

Zombie 3.1.0 Node 0.10.31

Zombie.visit(url, {
  runScripts: true,
  loadCSS: false,
  silent: true,
  headers: {
    bot: true
  }
}, function(err, browser, status) {
  if (err) return next(err);

  var html = browser.html();
});

Any ideas?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:34 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
mikegleasonjrcommented, Jun 25, 2015

👍

edit I just increased the waitDuration to make it go away for me:

var zombie = require('zombie');
zombie.waitDuration = '30s';
1reaction
sjparkinsoncommented, Jul 15, 2015

I’ve had this problem, not in a long running process, but because of a tag in google tag manager. It was loading a javascript file, that included another js file, which finally loaded an iframe. Something about that code was causing zombie to reliably throw this error.

Here’s the actual tag if it’s helpful:

<script>
__reach_config = {
  pid: '<removed>',
  url: window.location.protocol + "//" + window.location.hostname+window.location.pathname,
  reach_tracking: false
};
(function(){
  var s = document.createElement('script');
  s.async = true;
  s.type = 'text/javascript';
  s.src = document.location.protocol + '//d8rk54i4mohrb.cloudfront.net/js/reach.js';
  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(s);
})();
</script>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Zombie.js Error: Timeout: did not get to load all resources on ...
js is throwing an error Error: Timeout: did not get to load all resources on this page . It's always super random and...
Read more >
4 Ways to Fix the “Failed to Load Resource: net - Kinsta
A common culprit in Google Chrome is the cache. To reset your Chrome cache, open up the browser. Navigate to your Chrome settings...
Read more >
Fixing the Failed to Load Resource Error in WordPress
How to Fix the “Failed to Load Resource” Errors in WordPress · Edit the WordPress URL · Look for Another Theme · Disable...
Read more >
Before all hook error (Timeout: did not get to load all resources ...
Tell us what's happening: So I'm getting the following error: 1) Functional Tests with Zombie.js "before all" hook in "Functional Tests with ...
Read more >
Google unable to load all page resources which is causing ...
Page partially loaded​​ Not all resources page can be loaded. This may affect the way Google sees and interprets your page. Fix availability ......
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