Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FUNCTION LOAD fails with "Invalid library metadata" #489

Closed
erhhung opened this issue Feb 14, 2024 · 1 comment · Fixed by #490
Closed

FUNCTION LOAD fails with "Invalid library metadata" #489

erhhung opened this issue Feb 14, 2024 · 1 comment · Fixed by #490
Labels
bug Something isn't working

Comments

@erhhung
Copy link

erhhung commented Feb 14, 2024

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
@laixintao
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants