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

Copy as cURL should fix case of verbs to uppercase #134

Open
rmoff opened this issue Apr 22, 2016 · 1 comment
Open

Copy as cURL should fix case of verbs to uppercase #134

rmoff opened this issue Apr 22, 2016 · 1 comment

Comments

@rmoff
Copy link

rmoff commented Apr 22, 2016

In sense I can write this and it executes fine:

put _snapshot/local-data/data
{ "indices" : "logstash-*"
}

But if I "Copy as cURL" the *_resulting statement retains the lowercase put *_which then fails to execute

curl -Xput "http://localhost:9200/_snapshot/local-kibana/kibana" -d'
> { "indices" : ".kibana"
> }'
{"error":{"root_cause":[{"type":"snapshot_missing_exception","reason":"[local-kibana:kibana] is missing"}],"type":"snapshot_missing_exception","reason":"[local-kibana:kibana] is missing","caused_by":{"type":"no_such_file_exception","reason":"/mnt/elk1/elasticsearch/snapshots/snap-kibana.dat"}},"status":404}

Would be good if the Copy as cURL could fix this, and maybe just make Sense autofix verbs to uppercase regardless as this seems to be a common cause of issues (c.f. #133 #85)

@spalger
Copy link
Contributor

spalger commented Apr 22, 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