Skip to content

Issue with datadog orchestrion #339

@aryasuryapp

Description

@aryasuryapp

Got this error when build using orchestrion

2025/02/26 09:07:46 [Recovery] 2025/02/26 - 09:07:46 panic recovered:
GET /monitoring/api/queue HTTP/1.1
Host: localhost:8080
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Connection: keep-alive
Cookie: csrf_token=0Oa5gD3nPTDopy838bsXp2s+fvE+8MwxaUDE+8yZVwI=
Sec-Ch-Ua: "Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "macOS"
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:262 (0x10470208f)
runtime/signal_unix.go:900 (0x10470205c)
:2 (0x1057849a4)
github.com/hibiken/[email protected]/handler.go:55 (0x10578f957)
github.com/gin-gonic/[email protected]/utils.go:49 (0x1057c5b7b)
github.com/gin-gonic/[email protected]/context.go:185 (0x10570c77b)
gopkg.in/DataDog/[email protected]/contrib/gin-gonic/gin/gintrace.go:69 (0x10570c750)
github.com/gin-gonic/[email protected]/context.go:185 (0x10554a79b)
github.com/gin-gonic/[email protected]/recovery.go:102 (0x10554a77c)
github.com/gin-gonic/[email protected]/context.go:185 (0x105549b07)
github.com/gin-gonic/[email protected]/logger.go:249 (0x105549ae4)
github.com/gin-gonic/[email protected]/context.go:185 (0x105548f43)
github.com/gin-gonic/[email protected]/gin.go:633 (0x105548acc)
github.com/gin-gonic/[email protected]/gin.go:589 (0x1055486f3)
gopkg.in/DataDog/[email protected]/contrib/net/http/trace.go:35 (0x1057836cb)
gopkg.in/DataDog/[email protected]/contrib/net/http/http.go:106 (0x105782fbb)
net/http/server.go:2220 (0x104a376a7)
net/http/server.go:3210 (0x104a556cb)
net/http/server.go:2092 (0x104a3625b)
runtime/asm_arm64.s:1223 (0x104708ff3)

Dependecies
github.com/hibiken/asynqmon v0.7.2
github.com/hibiken/asynq v0.25.1
github.com/DataDog/orchestrion v1.0.4
github.com/gin-gonic/gin v1.10.0

Details
I import asynqmon as library with Gin framework
Build successfully using orchestrion go build .
but when i run the binary and visit /monitong/*any it trigger panic and error 500
my other API endpoint works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions