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.

How to find a finite resource ?

See original GitHub issue

I have very simple code:

const Browser = require('zombie');
const browser = new Browser();

browser.userAgent = "Mozilla/5.0 (Linux; U; Android 4.0.2; en-us; Galaxy Nexus Build/ICL53F) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30";
browser.visit('http://file-storage.mobi/iYFb7Wsc', function () {
    console.log("LOADEDDDD !!!!", browser.location.href)
});

when i run this code with zombie@4.2.1 with DEBUG env, i have this log:

In log i describe my problem.

zombie Opened window http://file-storage.mobi/iYFb7Wsc  +0ms
  zombie GET http://file-storage.mobi/iYFb7Wsc => 302 http://aino5.completesecurecarrier.com/?KW={KW}&s1={s1}&s2={s2}&s3={s3}&s4={s4}&s5={s5} +666ms
  zombie GET http://aino5.completesecurecarrier.com/?KW=%7BKW%7D&s1=%7Bs1%7D&s2=%7Bs2%7D&s3=%7Bs3%7D&s4=%7Bs4%7D&s5=%7Bs5%7D => 302 http://BBizz.fucknow.kege.info/?sov=1184950635&hid=brbpjfjffrfrnhhn&&redid=11211&gsid=323&id=XNSX.%7Bs1%7D%3A%3A%7Bs2%7D%3A%3A%7Bs3%7D%3A%3A%7Bs4%7D%3A%3A%7Bs5%7D-r11211-t323 +408ms
  zombie GET http://bbizz.fucknow.kege.info/?sov=1184950635&hid=brbpjfjffrfrnhhn&&redid=11211&gsid=323&id=XNSX.%7Bs1%7D%3A%3A%7Bs2%7D%3A%3A%7Bs3%7D%3A%3A%7Bs4%7D%3A%3A%7Bs5%7D-r11211-t323 => 200 +908ms
  zombie Loaded document http://bbizz.fucknow.kege.info/?sov=1184950635&hid=brbpjfjffrfrnhhn&&redid=11211&gsid=323&id=XNSX.%7Bs1%7D%3A%3A%7Bs2%7D%3A%3A%7Bs3%7D%3A%3A%7Bs4%7D%3A%3A%7Bs5%7D-r11211-t323 +35ms
  zombie Opened window http://bbizz.fucknow.kege.info/MOB505adultrotatorwapALL.html  +22ms
  zombie GET http://bbizz.fucknow.kege.info/MOB505adultrotatorwapALL.html => 200 +2s
  zombie Loaded document http://bbizz.fucknow.kege.info/MOB505adultrotatorwapALL.html +10ms
  zombie Opened window http://www.girlsonfire.mobi/?sl=58919-9eaa6&data1=Track1&data2=Track2&data3=qg108afnDb  +7ms
  zombie GET http://www.girlsonfire.mobi/?sl=58919-9eaa6&data1=Track1&data2=Track2&data3=qg108afnDb => 200 +340ms
  zombie Loaded document http://www.girlsonfire.mobi/?sl=58919-9eaa6&data1=Track1&data2=Track2&data3=qg108afnDb +9ms
  zombie GET http://cdn.mobidea.com/websites-files/resources/js/history_injection.js => 200 +266ms
  zombie Fired setTimeout after 0ms delay +5ms
  zombie Opened window http://2015-2.cftrac.info/aff_c?offer_id=720&aff_id=1052&aff_sub3=%7B%7BAFFILIATE_ID%7D%7D&aff_sub=1005500000002330674-201512-6b6253dc17  +4ms
  zombie GET http://2015-2.cftrac.info/aff_c?offer_id=720&aff_id=1052&aff_sub3=%7B%7BAFFILIATE_ID%7D%7D&aff_sub=1005500000002330674-201512-6b6253dc17 => 302 http://2015-2.cftrac.info/aff_r?offer_id=720&aff_id=1052&url=http%3A%2F%2Fad.blinko.ru%2Fclickforward%3Fcr%3D54875%26transaction_id%3D102df343446f4b87827e6742ae3bba%26aff_id%3D1052&urlauth=397418930219902620270515241089 +251ms

  // ------ [COMMENT FOR GITHUB] ------ THIS REDIRECT 302 FROM 2015-2.cftrac.info TO ad.blinko.ru ------------>>>
  zombie GET http://2015-2.cftrac.info/aff_r?offer_id=720&aff_id=1052&url=http%3A%2F%2Fad.blinko.ru%2Fclickforward%3Fcr%3D54875%26transaction_id%3D102df343446f4b87827e6742ae3bba%26aff_id%3D1052&urlauth=397418930219902620270515241089 => 302 http://ad.blinko.ru/clickforward?cr=54875&transaction_id=102df343446f4b87827e6742ae3bba&aff_id=1052 +348ms

  // ------ [COMMENT FOR GITHUB] ------ THIS browser.visit CALL CALLBACK, BUT WHY ???  ------------>>>
  /------------------------------------/
LOADEDDDD !!!! http://2015-2.cftrac.info/aff_c?offer_id=720&aff_id=1052&aff_sub3=%7B%7BAFFILIATE_ID%7D%7D&aff_sub=1005500000002330674-201512-6b6253dc17
  /------------------------------------/

  zombie GET http://ad.blinko.ru/clickforward?cr=54875&transaction_id=102df343446f4b87827e6742ae3bba&aff_id=1052 => 302 http://ad.blinko.ru/adultshit +351ms
  zombie GET http://ad.blinko.ru/adultshit => 302 http://apps.blinko.ru/page/bonga_cams/2/ +460ms

  // ------ [COMMENT FOR GITHUB] ------ THIS IS LAST POINT THAT I NEED, AND THAT I EXPECTED IN browser.visit CALLBACK.  ------------>>>
  zombie GET http://apps.blinko.ru/page/bonga_cams/2/ => 200 +179ms

What am I doing wrong ?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
yaronassacommented, Dec 10, 2015

Ho, sorry, then the solution is much more simple. Change the wait duration: Add browser.waitDuration = '20s'; Before performing .visit. Please note that you route through script-heavy locations (like spaces.slimspots.com) that do open some frames as far as I can tell.

1reaction
sintanialcommented, Dec 10, 2015

@yaronassa thx for answer I ran your code and got this error::

Unhandled rejection Error: Timeout: did not get to load all resources on this page
    at timeout (/Users/roman/Projects/*****/*****/********/node_modules/zombie/lib/eventloop.js:601:38)
    at Timer.listOnTimeout (timers.js:93:15)
Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a finite resource and what are some examples? - Quora
In economics, people say "finite resource" to indicate scarcity. Scarcity is an important concept in traditional economic thinking, and it means "something ...
Read more >
Finite resource - Oxford Reference
A resource that is concentrated or formed at a rate very much slower than its rate of consumption and so, for all practical...
Read more >
Using A Finite Resource | The Last Tech Age
We have a use-rate that grows in proportion to its current size. This is the setup for a standard e-base function dU =...
Read more >
Forgotten Fundamentals of the Energy Crisis Part 5 - article by ...
Physicists would tend to agree that the world's mineral resources are finite. The extent of the resources is only incompletely known, although knowledge...
Read more >
finite resource | Encyclopedia.com
finite resource (non-renewable resource) A resource that is concentrated or formed at a rate very much slower than its rate of consumption and...
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