# Ruby Client

**URL:** https://discuss.aerospike.com/c/client-libraries/ruby-client/124.md

[Latest](https://discuss.aerospike.com/latest.md) · [Categories](https://discuss.aerospike.com/categories.md) · [Tags](https://discuss.aerospike.com/tags.md)

---

## [About the Ruby Client category](https://discuss.aerospike.com/t/about-the-ruby-client-category/689)

<div class="topic-metadata">

**Author:** [@meher](https://discuss.aerospike.com/u/meher)\
**Replies:** 0

</div>

Discuss the Ruby client.

---

## [Aerospike::Exceptions::InvalidNode: Invalid node on Ruby Aerospike Client](https://discuss.aerospike.com/t/aerospike-invalid-node-on-ruby-aerospike-client/8192)

<div class="topic-metadata">

**Author:** [@mubashirkamran](https://discuss.aerospike.com/u/mubashirkamran)\
**Replies:** 1\
**Last updated:** [February 1, 2021, 6:22am UTC](https://discuss.aerospike.com/t/aerospike-invalid-node-on-ruby-aerospike-client/8192 "2021-02-01T06:22:38Z")

</div>

Hello, We are using aerospike client library GitHub - aerospike/aerospike-client-ruby: Ruby client for the Aerospike database version v2.18.0 to communicate with AES cluster. We get a lot of Aerospike::Exceptions::Inval…

---

## [Occasional errors when using LB discovery](https://discuss.aerospike.com/t/occasional-errors-when-using-lb-discovery/6527)

<div class="topic-metadata">

**Author:** [@madejejej](https://discuss.aerospike.com/u/madejejej)\
**Replies:** 5\
**Last updated:** [August 7, 2019, 12:32pm UTC](https://discuss.aerospike.com/t/occasional-errors-when-using-lb-discovery/6527 "2019-08-07T12:32:28Z")

</div>

Hi, We’re using Aerospike Ruby client (v2.11.0) and I’m using AWS ELB address to initialize the client. ::Aerospike::Client.new(elb\_address) We’re seeing occasional errors Aerospike::Exceptions::Aerospike: Server not …

---

## [CDT::ListOperation.get\_by\_rank, wrong number of arguments (given 3, expected 2)](https://discuss.aerospike.com/t/cdt-listoperation-get-by-rank-wrong-number-of-arguments-given-3-expected-2/6152)

<div class="topic-metadata">

**Author:** [@Dorijan\_Jelincic](https://discuss.aerospike.com/u/Dorijan_Jelincic)\
**Replies:** 2\
**Last updated:** [April 13, 2019, 4:46pm UTC](https://discuss.aerospike.com/t/cdt-listoperation-get-by-rank-wrong-number-of-arguments-given-3-expected-2/6152 "2019-04-13T16:46:52Z")

</div>

Hi, I am trying to get minimum and maximum value of some list, and I was looking for example of timeseries, and I am trying to use something like this: op\_size = \[CDT::ListOperation.get\_by\_rank('data',-1,7)\] but got Ar…

---

## [Best practice with Ruby on Rails app](https://discuss.aerospike.com/t/best-practice-with-ruby-on-rails-app/6087)

<div class="topic-metadata">

**Author:** [@Dorijan\_Jelincic](https://discuss.aerospike.com/u/Dorijan_Jelincic)\
**Replies:** 7\
**Last updated:** [April 8, 2019, 11:14am UTC](https://discuss.aerospike.com/t/best-practice-with-ruby-on-rails-app/6087 "2019-04-08T11:14:56Z")

</div>

Hi, I was wondering what is the best practice for connecting to aerospike? For now I was using in application controller globial variable $client like this class ApplicationController \< ActionController::Base include …

---

## [Execute\_udf\_on\_query does not give any data](https://discuss.aerospike.com/t/execute-udf-on-query-does-not-give-any-data/6132)

<div class="topic-metadata">

**Author:** [@Dorijan\_Jelincic](https://discuss.aerospike.com/u/Dorijan_Jelincic)\
**Replies:** 5\
**Last updated:** [April 8, 2019, 8:57am UTC](https://discuss.aerospike.com/t/execute-udf-on-query-does-not-give-any-data/6132 "2019-04-08T08:57:46Z")

</div>

Hi, I am trying to stream some data but if I use execute\_udf\_on\_query before the query, I always get 0 entries. task = $client.register\_udf\_from\_file("as\_lua/ordermaker.lua", "ordermaker.lua", language=Aerospike::Langua…

---

## [Key not found](https://discuss.aerospike.com/t/key-not-found/6079)

<div class="topic-metadata">

**Author:** [@Dorijan\_Jelincic](https://discuss.aerospike.com/u/Dorijan_Jelincic)\
**Replies:** 13\
**Last updated:** [April 3, 2019, 9:09am UTC](https://discuss.aerospike.com/t/key-not-found/6079 "2019-04-03T09:09:13Z")

</div>

Hi, I am using aerospike in one project, and have lot of sets, so sometimes index is not created. But I get error and everything stops E, \[2019-03-28T14:06:45.294602 #12501\] ERROR -- : Key not found E, \[2019-03-28T14:06…

---

## [queryAggregate still not implemented in Ruby](https://discuss.aerospike.com/t/queryaggregate-still-not-implemented-in-ruby/6099)

<div class="topic-metadata">

**Author:** [@Dorijan\_Jelincic](https://discuss.aerospike.com/u/Dorijan_Jelincic)\
**Replies:** 7\
**Last updated:** [April 2, 2019, 7:40pm UTC](https://discuss.aerospike.com/t/queryaggregate-still-not-implemented-in-ruby/6099 "2019-04-02T19:40:36Z")

</div>

Hi, Is it possible that UDF Aggregation is still not implemented in Ruby or I cannot find the right solution to filter on 2 different rows?

---

## [Read from node with master partition](https://discuss.aerospike.com/t/read-from-node-with-master-partition/5857)

<div class="topic-metadata">

**Author:** [@zingoba](https://discuss.aerospike.com/u/zingoba)\
**Replies:** 1\
**Last updated:** [January 16, 2019, 11:01am UTC](https://discuss.aerospike.com/t/read-from-node-with-master-partition/5857 "2019-01-16T11:01:17Z")

</div>

Hi Jan, We are facing data inconsistency in some of our read calls. Aerospike client get request is returning nil for a newly set key. We think this is because the client is reading from a slave node which has not yet s…

---

## [Resource temporarily unavailable](https://discuss.aerospike.com/t/resource-temporarily-unavailable/5383)

<div class="topic-metadata">

**Author:** [@Pandurang\_w](https://discuss.aerospike.com/u/Pandurang_w)\
**Replies:** 8\
**Last updated:** [August 7, 2018, 7:19am UTC](https://discuss.aerospike.com/t/resource-temporarily-unavailable/5383 "2018-08-07T07:19:03Z")

</div>

In my JRuby application, I am getting following error periodically, Aerospike::Exceptions::Connection: Resource temporarily unavailable - errno backtraces disabled; run with -Xerrno.backtrace=true to enable with follow…

---

## [Batch get method partially implemented?](https://discuss.aerospike.com/t/batch-get-method-partially-implemented/4861)

<div class="topic-metadata">

**Author:** [@zingoba](https://discuss.aerospike.com/u/zingoba)\
**Replies:** 3\
**Last updated:** [February 21, 2018, 12:36pm UTC](https://discuss.aerospike.com/t/batch-get-method-partially-implemented/4861 "2018-02-21T12:36:29Z")

</div>

Hi all, We are using Aerospike 2.1.1 ruby client on production and querying for some records using the batch\_get() API. We are suspecting that this method is erroneous because a lot of the times it returns nil response …

---

## [Why Ruby client does not support Stream UDF implementation?](https://discuss.aerospike.com/t/why-ruby-client-does-not-support-stream-udf-implementation/3934)

<div class="topic-metadata">

**Author:** [@bayram](https://discuss.aerospike.com/u/bayram)\
**Replies:** 3\
**Last updated:** [March 15, 2017, 2:53am UTC](https://discuss.aerospike.com/t/why-ruby-client-does-not-support-stream-udf-implementation/3934 "2017-03-15T02:53:40Z")

</div>

As far as I understood Ruby client does not support Stream UDF queries. Is it because of nature of Ruby and impossible to implement? Or is it just matter of time and next release may support?

---

## [Is Smart Client available for Ruby client?](https://discuss.aerospike.com/t/is-smart-client-available-for-ruby-client/3844)

<div class="topic-metadata">

**Author:** [@bayram](https://discuss.aerospike.com/u/bayram)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 6:42pm UTC](https://discuss.aerospike.com/t/is-smart-client-available-for-ruby-client/3844 "2017-02-10T18:42:52Z")

</div>

The \[documentation\] (http://www.aerospike.com/docs/architecture/index.html) says that The Aerospike Smart Client™ is designed for speed. It is implemented as an open source linkable library available in C, C#, Java, PHP,…

---

## [Multiple operations on CDT return the result of the last operation only](https://discuss.aerospike.com/t/multiple-operations-on-cdt-return-the-result-of-the-last-operation-only/3385)

<div class="topic-metadata">

**Author:** [@zingoba](https://discuss.aerospike.com/u/zingoba)\
**Replies:** 4\
**Last updated:** [September 20, 2016, 2:09am UTC](https://discuss.aerospike.com/t/multiple-operations-on-cdt-return-the-result-of-the-last-operation-only/3385 "2016-09-20T02:09:58Z")

</div>

Hi, We need to do multiple operations on a large hashmap bin; essentially, multiple get by keys. The keys are in no order lexicographically. So we send multiple get\_key operations on the same bin with different keys but…

---

## [Invalid size for buffer error](https://discuss.aerospike.com/t/invalid-size-for-buffer-error/3291)

<div class="topic-metadata">

**Author:** [@zingoba](https://discuss.aerospike.com/u/zingoba)\
**Replies:** 5\
**Last updated:** [August 23, 2016, 12:34pm UTC](https://discuss.aerospike.com/t/invalid-size-for-buffer-error/3291 "2016-08-23T12:34:10Z")

</div>

Hi, We recently deployed our ruby application with aerospike on a test server with production like load and within a matter of few seconds we started getting this error very frequently. We were doing a single get from a…

---

## [Batch\_get\_header returns incorrect metadata for all records](https://discuss.aerospike.com/t/batch-get-header-returns-incorrect-metadata-for-all-records/3269)

<div class="topic-metadata">

**Author:** [@zingoba](https://discuss.aerospike.com/u/zingoba)\
**Replies:** 4\
**Last updated:** [August 16, 2016, 6:41am UTC](https://discuss.aerospike.com/t/batch-get-header-returns-incorrect-metadata-for-all-records/3269 "2016-08-16T06:41:26Z")

</div>

Hi, I’ve noticed that on querying using the ruby client, the record’s metadata is correctly retrieved when using the method for single record i.e. get(). However, batch\_get() returns records with incorrect metadata. Exa…

---

## [Index Error with Ruby Client](https://discuss.aerospike.com/t/index-error-with-ruby-client/2390)

<div class="topic-metadata">

**Author:** [@Anand\_Mahajan](https://discuss.aerospike.com/u/Anand_Mahajan)\
**Replies:** 5\
**Last updated:** [January 15, 2016, 1:30pm UTC](https://discuss.aerospike.com/t/index-error-with-ruby-client/2390 "2016-01-15T13:30:32Z")

</div>

Have a strange error with the index query - the Ruby code snippet below - stmt = Statement.new("marketcheck", "listings", \["id", "price", "miles", "scraped\_at", "status\_date", "is\_searchable\_is", "seller\_name", "source"…

---

## [Aerospike aggregation problem](https://discuss.aerospike.com/t/aerospike-aggregation-problem/2155)

<div class="topic-metadata">

**Author:** [@AdamStomski](https://discuss.aerospike.com/u/AdamStomski)\
**Replies:** 1\
**Last updated:** [November 24, 2015, 9:39pm UTC](https://discuss.aerospike.com/t/aerospike-aggregation-problem/2155 "2015-11-24T21:39:31Z")

</div>

Hello, I am using aerospike and try to retrieve records using several filters in aerospike-client-ruby (GitHub - aerospike/aerospike-client-ruby: Ruby client for the Aerospike database) it looks the following way: aeros…

---

## [Query operations from ruby?](https://discuss.aerospike.com/t/query-operations-from-ruby/629)

<div class="topic-metadata">

**Author:** [@letronje](https://discuss.aerospike.com/u/letronje)\
**Replies:** 1\
**Last updated:** [December 12, 2014, 9:14am UTC](https://discuss.aerospike.com/t/query-operations-from-ruby/629 "2014-12-12T09:14:20Z")

</div>

What’s the best way to fire query operations from ruby as of now ?
