Skip to content

silent=true for drop() is not working #238

Description

@sanikolaev

According to https://github.com/manticoresoftware/manticoresearch-php/blob/master/docs/indices.md#drop

Image

this shouldn't fail, but it fails:

# cat test_drop.php
<?php
require_once __DIR__ . '/vendor/autoload.php';

$config = ['host'=>'127.0.0.1','port'=>9308];
$client = new \Manticoresearch\Client($config);

$params = [
  'index' => 'testrt',
  ['body' => ['silent'=>true ]]
];
$response = $client->indices()->drop($params);


# php test_drop.php
PHP Fatal error:  Uncaught Manticoresearch\Exceptions\ResponseException: "DROP TABLE failed: unknown table 'testrt'" in /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Transport/Http.php:147
Stack trace:
#0 /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Client.php(381): Manticoresearch\Transport\Http->execute(Object(Manticoresearch\Endpoints\Indices\Drop), Array)
#1 /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Indices.php(104): Manticoresearch\Client->request(Object(Manticoresearch\Endpoints\Indices\Drop), Array)
#2 /Users/sn/test_drop.php(11): Manticoresearch\Indices->drop(Array)
#3 {main}
  thrown in /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Transport/Http.php on line 147

Fatal error: Uncaught Manticoresearch\Exceptions\ResponseException: "DROP TABLE failed: unknown table 'testrt'" in /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Transport/Http.php:147
Stack trace:
#0 /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Client.php(381): Manticoresearch\Transport\Http->execute(Object(Manticoresearch\Endpoints\Indices\Drop), Array)
#1 /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Indices.php(104): Manticoresearch\Client->request(Object(Manticoresearch\Endpoints\Indices\Drop), Array)
#2 /Users/sn/test_drop.php(11): Manticoresearch\Indices->drop(Array)
#3 {main}
  thrown in /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Transport/Http.php on line 147

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions