question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

client.indices.refresh Authorization Exception

See original GitHub issue

Since enabling security on our new Elasticsearch cluster (6.6.1) client.indices.refresh is throwing an Authorization Exception.

E.g.

client.indices.refresh({
    index: 'my-index-name'
}

The user in question has a role with the following privileges…

"privileges": [
    "manage",
    "read",
    "view_index_metadata",
    "write"
]

Other operations like client.search and client.index` are working fine.

Have I found a bug?

If I have, would you be amenable to me submitting a PR to fix it?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
WillGibsoncommented, Mar 8, 2019

I just realised I should have checked the version while walking the dog and got my phone out to say so. Will check that and curling when I get back.

0reactions
delvedorcommented, Mar 8, 2019

Hi! Sorry for the delay! Glad you could solve it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authorization exceptions | Elasticsearch Guide [8.5] | Elastic
I configured the appropriate roles and the users, but I still get an authorization exception. I can authenticate to LDAP, but I still...
Read more >
How to fix "elasticsearch.exceptions.AuthenticationException
I am working on using an ElasticSearch database to store data I am pulling from online. However, when I try to index the...
Read more >
Misleading Exception thrown on 'Get' query using wildcard in ...
To my surprise, I got the following error message when the exception was raised. elasticsearch.exceptions.AuthorizationException: ...
Read more >
API Documentation — Elasticsearch 7.16.0 documentation
The instance has attributes cat , cluster , indices , ingest , nodes , snapshot ... SSL client authentication is supported (see Urllib3HttpConnection...
Read more >
org.elasticsearch.action.admin.indices.refresh.RefreshRequest
public boolean elasticsearch() throws Exception { String indexName = UUID.randomUUID().toString(); try { //create createIndex(client, indexName); // index ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found