$repositoryApi->all() with 'pagelen`=> 100 will crash because of the unchangable timeout of 10 seconds

Issue #85 new
Thomas Kekeisen created an issue

When you call $repositoryApi->all() with 'pagelen`=> 100 will crash because of the unchangable timeout of 10 seconds. Would be great to have a possibility to increase the timeout.

A workaround is to use a smaller 'pagelen`.

Comments (5)

  1. Alexandru Guzinschi

    Creating a custom instance of a HTTP client didn’t work for you ?

    $api = new \Bitbucket\API\Api(array(), new \Bitbucket\API\Http\Client(array('timeout' => 60)));
    

    or you could use the setter $api->setClient() in order to replace the HTTP client after you create a default `Api` instance.

  2. Thomas Kekeisen reporter

    @Alex Guzenski Thank you, i will give this a try. Was not able to find this solution using the docs 🙂

  3. Log in to comment