Python client sometimes returns exceptions.Exception


When making queries using the python client (1.0.49), I’m occasionally getting an exception of type exceptions.Exception, with contents “(2L, ‘AEROSPIKE_ERR_RECORD_NOT_FOUND’, ‘src/main/aerospike/as_command.c’, 977)”, rather than the standard aerospike.exception.RecordNotFound that’s usually returned.

This behavior occurs when using LDTs. The code itself looks like:

ldt = self._client.llist(key, bin_name)
bins = ldt.find_first(ldt.size())


Thanks for the information. Can you open this as a new issue on the aerospike/aerospike-client-python GitHub repo?


Sure thing. Cross posted here:



Thank you for posting about LDTs in our forum. Please see the LDT Feature Guide for current LDT recommendations and best practices.



Effective immediately, we will no longer actively support the LDT feature and will eventually remove the API. The exact deprecation and removal timeline will depend on customer and community requirements. Instead of LDTs, we advise that you use our newer List and SortedMap APIs, which are now available in all Aerospike-supported clients at the General Availability level. Read our blog post for details.