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

cluster_reroute #291

Open
featherduino opened this issue Jun 8, 2022 · 7 comments
Open

cluster_reroute #291

featherduino opened this issue Jun 8, 2022 · 7 comments

Comments

@featherduino
Copy link
Contributor

Session Info
cluster_reroute(conn = z,body=x)

Error in cli$post(body = body, query = args, encode = "json") :
argument "args" is missing, with no default

My body is a json
I don't see an args argument in the docs

@featherduino
Copy link
Contributor Author

Error on using this, cant decode this err
please help

cluster_reroute(conn = z,query=toJSON(fromJSON(x)),body = NULL)
Error in es_POST(conn, "_cluster/reroute", query = body, raw = raw, callopts = callopts,  : 
  formal argument "query" matched by multiple actual arguments

@featherduino
Copy link
Contributor Author

Anyone here ?

@sckott
Copy link
Contributor

sckott commented Jun 13, 2022

i think you need to pass the data to body instead of query -

cluster_reroute(conn = z, body = toJSON(fromJSON(x)))

@featherduino
Copy link
Contributor Author

yup on doing that I get an error
cluster_reroute(conn = z, body = toJSON(fromJSON(x)))

x<-'
{
"commands" : [
{
"allocate_replica" : {
"index" : "XXXXX",
"shard" : 0,
"node" : "XXXXXX"
}
}
]
}'

Error in cli$post(body = body, query = args, encode = "json") :
argument "args" is missing, with no default

@featherduino
Copy link
Contributor Author

??

@sckott
Copy link
Contributor

sckott commented Jun 24, 2022

can you reinstall and try again, install like remotes::install_github("sckott/elastic")

@maelle
Copy link
Member

maelle commented Sep 9, 2022

For info this package is looking for a new maintainer cf #292 😸

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

3 participants