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

curlx fails to display not JSON response #12

Open
cocap10 opened this issue Aug 26, 2020 · 0 comments
Open

curlx fails to display not JSON response #12

cocap10 opened this issue Aug 26, 2020 · 0 comments

Comments

@cocap10
Copy link

cocap10 commented Aug 26, 2020

Hi there,
Thank you for your tool.
I have an issue when I try to get my elastisearch indices. The response is not a JSON format.
curlx fails to parse the supposed JSON response: Unexpected token y in JSON at position 1
It would be great if it display the response without formatting when the parsing fail.

What happens:

$ cx -X GET "http://localhost:9200/_cat/indices"
Unexpected token y in JSON at position 1
"Error while executing curl -i \"-X\" \"GET\" \"http://localhost:9200/_cat/indices\""

What it should do:

$ cx -X GET "http://localhost:9200/_cat/indices"
yellow open ********                    VoYA-xUiTjSp-p_MI0NnCA 5 1 0 0 810b 810b
yellow open ********                    evgkP-I0T4yV78KMKy2ROQ 5 1 0 0 810b 810b

Thanks
Martin

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