[GH-ISSUE #383] [BUG] Wrong number of args calling Redis command From Lua script on Windows #166

Closed
opened 2026-03-02 05:19:17 +03:00 by kerem · 2 comments
Owner

Originally created by @0xdu on GitHub (Jan 20, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/383

Originally assigned to: @hibiken on GitHub.

Describe the bug
UNKNOWN: redis eval error: ERR Error running script (call to f_6b2833bade2cce3e7bae2440c9187cd23e3ae042): @user_script:5: @user_script: 5: Wrong number of args calling Redis command From Lua script

To Reproduce
run code demo.go on windows

package main

import (
	"context"
	"encoding/json"
	"github.com/hibiken/asynq"
	"log"
)

var ctx = context.Background()
// client.go
func main() {
	client := asynq.NewClient(asynq.RedisClientOpt{Addr: "localhost:6379"})
	payload, _ := json.Marshal("123")
	t1 := asynq.NewTask("demo", payload)
	// Process the task immediately.
	info, err := client.Enqueue(t1)
	if err != nil {
		log.Fatal(err)
	}
	log.Printf(" [*] Successfully enqueued task: %+v", info)
}

  1. See Error ...
2022/01/20 17:18:09 UNKNOWN: redis eval error: ERR Error running script (call to f_6b2833bade2cce3e7bae2440c9187cd23e3ae042): @user_script:5: @user_script: 5: Wrong number of args calling Redis command From Lua script 

Environment (please complete the following information):

  • OS: Windows 10
  • Version of asynq package: v0.20.0
Originally created by @0xdu on GitHub (Jan 20, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/383 Originally assigned to: @hibiken on GitHub. **Describe the bug** UNKNOWN: redis eval error: ERR Error running script (call to f_6b2833bade2cce3e7bae2440c9187cd23e3ae042): @user_script:5: @user_script: 5: Wrong number of args calling Redis command From Lua script **To Reproduce** run code demo.go on windows ``` package main import ( "context" "encoding/json" "github.com/hibiken/asynq" "log" ) var ctx = context.Background() // client.go func main() { client := asynq.NewClient(asynq.RedisClientOpt{Addr: "localhost:6379"}) payload, _ := json.Marshal("123") t1 := asynq.NewTask("demo", payload) // Process the task immediately. info, err := client.Enqueue(t1) if err != nil { log.Fatal(err) } log.Printf(" [*] Successfully enqueued task: %+v", info) } ``` 2. See Error ... ``` 2022/01/20 17:18:09 UNKNOWN: redis eval error: ERR Error running script (call to f_6b2833bade2cce3e7bae2440c9187cd23e3ae042): @user_script:5: @user_script: 5: Wrong number of args calling Redis command From Lua script ``` **Environment (please complete the following information):** - OS: Windows 10 - Version of `asynq` package: v0.20.0
kerem 2026-03-02 05:19:17 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@hibiken commented on GitHub (Jan 20, 2022):

@lucy9x Thank you for opening an issue!

Could you also check the version of Redis? Currently minimum supported version of redis is v4.x

<!-- gh-comment-id:1017489231 --> @hibiken commented on GitHub (Jan 20, 2022): @lucy9x Thank you for opening an issue! Could you also check the version of Redis? Currently minimum supported version of redis is v4.x
Author
Owner

@0xdu commented on GitHub (Jan 20, 2022):

Hi @hibiken
Thanks for your comment. I realize I'm using redis version 3 :'(

<!-- gh-comment-id:1017539047 --> @0xdu commented on GitHub (Jan 20, 2022): Hi @hibiken Thanks for your comment. I realize I'm using redis version 3 :'(
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#166
No description provided.