Skip to content

Internal error 500 with lazy load #107

Description

@DarthMoleman

Hi,

when I test with http://jonnyw.kiwi/tests/test-lazy.php, everything is ok (got the page and the 'loaded' content). I have an internal error after several minutes with a website I'm scrapping (but no error on 'basic usage script' with delay).

Here is my code:

`
require 'vendor/autoload.php';
use JonnyW\PhantomJs\Client;

$url = "http://jonnyw.kiwi/tests/test-lazy.php";

   $client = Client::getInstance();
   $client->isLazy();

    $request  = $client->getMessageFactory()->createRequest();
    $request->setMethod('GET');
    $request->setUrl($url);
    //$request->setTimeout(5000);

    $response = $client->getMessageFactory()->createResponse();
    $client->send($request, $response);

    echo $response->getContent();`

Thanks for your help.

ps: sorry for my english, it's not my primary language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions