[GH-ISSUE #302] Latest version of asynq 0.24.1 breaks asynqmon #428

Closed
opened 2026-03-07 22:15:22 +03:00 by kerem · 7 comments
Owner

Originally created by @abezzub on GitHub (May 2, 2023).
Original GitHub issue: https://github.com/hibiken/asynqmon/issues/302

I am getting following error:

panic: asnyqmon.New: unsupported RedisConnOpt type asynq.RedisClientOpt

goroutine 1 [running]:
github.com/hibiken/asynqmon.New({{0x10580ef4e, 0xd}, {0x1065729c0, 0x140001d9180}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, ...})

Error originates from here:

rc, ok := opts.RedisConnOpt.MakeRedisClient().(redis.UniversalClient)
if !ok {
	panic(fmt.Sprintf("asnyqmon.New: unsupported RedisConnOpt type %T", opts.RedisConnOpt))
}

https://github.com/hibiken/asynqmon/blob/master/handler.go#L66

When I revert my project to use Asynq 0.24.0 the error goes away. I am using v9 Redis client.

Originally created by @abezzub on GitHub (May 2, 2023). Original GitHub issue: https://github.com/hibiken/asynqmon/issues/302 I am getting following error: ``` panic: asnyqmon.New: unsupported RedisConnOpt type asynq.RedisClientOpt goroutine 1 [running]: github.com/hibiken/asynqmon.New({{0x10580ef4e, 0xd}, {0x1065729c0, 0x140001d9180}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, ...}) ``` Error originates from here: ``` rc, ok := opts.RedisConnOpt.MakeRedisClient().(redis.UniversalClient) if !ok { panic(fmt.Sprintf("asnyqmon.New: unsupported RedisConnOpt type %T", opts.RedisConnOpt)) } ``` https://github.com/hibiken/asynqmon/blob/master/handler.go#L66 When I revert my project to use Asynq 0.24.0 the error goes away. I am using v9 Redis client.
kerem closed this issue 2026-03-07 22:15:23 +03:00
Author
Owner

@fosmjo commented on GitHub (May 8, 2023):

I came into the same problem too. @hibiken

<!-- gh-comment-id:1537896474 --> @fosmjo commented on GitHub (May 8, 2023): I came into the same problem too. @hibiken
Author
Owner

@anupriya17 commented on GitHub (May 9, 2023):

Until it fixed we can use the pr in go mod

replace github.com/hibiken/asynqmon => github.com/trungdlp-wolffun/asynqmon v0.0.0-20230504041709-b870efa9542d
<!-- gh-comment-id:1540592636 --> @anupriya17 commented on GitHub (May 9, 2023): Until it fixed we can use the pr in go mod ``` replace github.com/hibiken/asynqmon => github.com/trungdlp-wolffun/asynqmon v0.0.0-20230504041709-b870efa9542d ```
Author
Owner

@missish commented on GitHub (Jun 4, 2023):

func Monitor() {
h := asynqmon.New(asynqmon.Options{
RootPath: "/", // RootPath specifies the root for asynqmon app
RedisConnOpt: asynq.RedisClientOpt{Addr: ":6379", Password: "", DB: 0},
})

e := echo.New()
e.Any("/*", echo.WrapHandler(h))
e.Start(":8080")

}

Visit http://localhost:8080/ why this error occurs
template: pattern did not match any files: ui\build\index.html
How can I solve it?
@anupriya17

<!-- gh-comment-id:1575478615 --> @missish commented on GitHub (Jun 4, 2023): func Monitor() { h := asynqmon.New(asynqmon.Options{ RootPath: "/", // RootPath specifies the root for asynqmon app RedisConnOpt: asynq.RedisClientOpt{Addr: ":6379", Password: "", DB: 0}, }) e := echo.New() e.Any("/*", echo.WrapHandler(h)) e.Start(":8080") } Visit http://localhost:8080/ why this error occurs **template: pattern did not match any files: `ui\build\index.html`** How can I solve it? @anupriya17
Author
Owner

@Joker666 commented on GitHub (Jun 15, 2023):

+1

<!-- gh-comment-id:1592530083 --> @Joker666 commented on GitHub (Jun 15, 2023): +1
Author
Owner

@trungdlp-wolffun commented on GitHub (Jun 21, 2023):

+1

<!-- gh-comment-id:1600074491 --> @trungdlp-wolffun commented on GitHub (Jun 21, 2023): +1
Author
Owner

@hibiken commented on GitHub (Jul 3, 2023):

Should be fixed via #303

<!-- gh-comment-id:1619193848 --> @hibiken commented on GitHub (Jul 3, 2023): Should be fixed via #303
Author
Owner

@windowshopr commented on GitHub (Oct 26, 2023):

+1 template: pattern matches no files: ui\build\index.html

<!-- gh-comment-id:1780442824 --> @windowshopr commented on GitHub (Oct 26, 2023): +1 template: pattern matches no files: `ui\build\index.html`
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/asynqmon#428
No description provided.