Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to /cli returns json #238

Open
Nick-S-2018 opened this issue Mar 6, 2024 · 1 comment
Open

Request to /cli returns json #238

Nick-S-2018 opened this issue Mar 6, 2024 · 1 comment
Assignees

Comments

@Nick-S-2018
Copy link
Contributor

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 Nick-S-2018 self-assigned this Mar 6, 2024
@Nick-S-2018
Copy link
Contributor Author

Fixed in 1ee1040

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant