manticoresoftware / manticoresearch-buddy

Manticore Buddy is a Manticore Search's sidecar which helps it with various tasks
GNU General Public License v3.0
20 stars 2 forks source link

Request to /cli returns json #238

Open Nick-S-2018 opened 8 months ago

Nick-S-2018 commented 8 months ago

The following request returns a json response instead of a formatted message, when repeated:

curl 0:9308/cli -d "create table products(title text, price float) morphology='stem_en'"
Query OK, 0 rows affected (0.002 sec)

curl 0:9308/cli -d "create table products(title text, price float) morphology='stem_en'"
{"error":"table 'products': CREATE TABLE failed: table 'products' already exists"}%

We need to fix the behavior to get the proper response format.

Nick-S-2018 commented 8 months ago

Fixed in https://github.com/manticoresoftware/manticoresearch-buddy/commit/1ee1040c86f25475396a1c72e38ef94b89a15998