laixintao / iredis

Interactive Redis: A Terminal Client for Redis with AutoCompletion and Syntax Highlighting.

Home Page:https://iredis.xbin.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FUNCTION LOAD fails with "Invalid library metadata"

erhhung opened this issue · comments

Using the sample function library from the documentation, FUNCTION LOAD in iredis fails while it works just fine using regular redis-cli:

$ iredis
iredis  1.14.0 (Python 3.12.1)
redis-server  7.2.4 
Home:   https://iredis.xbin.io/
Issues: https://github.com/laixintao/iredis/issues
127.0.0.1:6379> FUNCTION LOAD "#!lua name=mylib \n redis.register_function('myfunc', function(keys, args) return args[1] end)"
(error) ERROR Invalid library metadata

$ redis-cli
127.0.0.1:6379> FUNCTION LOAD "#!lua name=mylib \n redis.register_function('myfunc', function(keys, args) return args[1] end)"
"mylib"
127.0.0.1:6379> FUNCTION DELETE mylib
OK

Thanks for reporting, now being fixed in #409 and released in v1.14.1