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

shards.json is not valid json #86

Closed
robin13 opened this issue Feb 4, 2016 · 2 comments
Closed

shards.json is not valid json #86

robin13 opened this issue Feb 4, 2016 · 2 comments

Comments

@robin13
Copy link

robin13 commented Feb 4, 2016

This does not come from an API endpoint directly does it?
It is not valid json, and so cannot be processed:

[{"index":"pingboard","shard":"0","prirep":"p","state":"STARTED","docs":"284","store":"1.3mb","ip":"172.17.0.157","node":"instance-0000000008"},{"index":"github_webhook","shard":"0","prirep":"p","state":"STARTED","docs":"3","store":"3kb","ip":"172.17.0.157","node":"instance-0000000008"},
...
@nemonster
Copy link
Contributor

_cat/shards?format=json

If you look in diags.yml, you'll see it there. Everything in comes from an endpoint except the manifest.

It is not valid json, and so cannot be processed:

Well, Jackson takes it just fine. And if you plug it into Json Lint I see:

Results

Valid JSON

So you may also want to specify the criteria by which you are determining that it is not valid.

@robin13
Copy link
Author

robin13 commented Feb 5, 2016

Sorry... my bad... have found problem with the JSON parsing module I was using.

@robin13 robin13 closed this as completed Feb 5, 2016
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

2 participants