Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Client did not get response within #1000 ms #15

@drewdeakin

Description

@drewdeakin

Hi

I am getting the following error after installing and setting up the php-api-client via composer:

Fatal error: Uncaught Recombee\RecommApi\Exceptions\ApiTimeoutException: Client did not get response within #1000 ms in /srv/users/sandwichboard/vendor/recombee/php-api-client/src/RecommApi/Client.php:105 Stack trace: #0 /srv/users/sandwichboard/apps/sandwichboard/public/include/config.php(26): Recombee\RecommApi\Client->send(Object(Recombee\RecommApi\Requests\AddDetailView)) #1 /srv/users/sandwichboard/apps/sandwichboard/public/index.php(3): require_once('/srv/users/sand...') #2 {main} thrown in /srv/users/sandwichboard/vendor/recombee/php-api-client/src/RecommApi/Client.php on line 105

This is the code that I am trying to run (haven't changed much from what's in https://docs.recombee.com/gettingstarted.html#getting-started-catalog)

  use Recombee\RecommApi\Client;
  use Recombee\RecommApi\Requests as Reqs;

  $client = new Client( $database, $key );
  $client->send(new Reqs\AddDetailView( "2c169e575644d840838e", "xyz" ) );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions