It's an old version, I know, but today I helped tackled this problem on stackoverflow: https://stackoverflow.com/questions/73901954/argument-error-with-elasticsearch-in-ruby-3-1/73923611 As the title says, v6.1.1 was pushed without any changes, which can be observed here: https://my.diffend.io/gems/elasticsearch-rails/6.1.0/6.1.1 Here are the changes that should have been pushed: https://github.com/elastic/elasticsearch-rails/commits/6.1.1 I imagine the proper way to fix it is to yank `6.1.1` and release `6.1.2` with the changes. Tagging @picandocodigo as you seem to be the one to release gems 🙈 Think it was raised already by @mojobiri here https://github.com/elastic/elasticsearch-rails/pull/992#issuecomment-1139619124