Skip to content

"failed to hydrateHasOne" search errors #462

@MidnightKittenCat

Description

@MidnightKittenCat

Getting 500 errors on torznab searches when paginating to higher offsets:

ERROR	gin	ginzap/ginzap.go:89	failed to search: failed to hydrateHasOne	{"status": 500, "method": "GET", "path": "/torznab/api", "query": "t=search&q=Bait&offset=2000&limit=100", "ip": "49.43.5.183", "user-agent": "Python/3.11 aiohttp/3.13.2", "latency": "57.578022ms", "time": "2025-11-28T03:49:44Z"}
github.com/bitmagnet-io/bitmagnet/internal/boilerplate/httpserver.New.func1.Ginzap.GinzapWithConfig.2
	/src/internal/boilerplate/httpserver/ginzap/ginzap.go:89
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
net/http.serverHandler.ServeHTTP
	/usr/local/go/src/net/http/server.go:3210
net/http.(*conn).serve
	/usr/local/go/src/net/http/server.go:2092
ERROR	gin	ginzap/ginzap.go:89	failed to search: failed to hydrateHasOne	{"status": 500, "method": "GET", "path": "/torznab/api", "query": "t=search&q=The+Studio&offset=700&limit=100", "ip": "184.183.11.115", "user-agent": "Python/3.11 aiohttp/3.13.2", "latency": "1.183250299s", "time": "2025-11-28T03:50:10Z"}
github.com/bitmagnet-io/bitmagnet/internal/boilerplate/httpserver.New.func1.Ginzap.GinzapWithConfig.2
	/src/internal/boilerplate/httpserver/ginzap/ginzap.go:89
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
net/http.serverHandler.ServeHTTP
	/usr/local/go/src/net/http/server.go:3210
net/http.(*conn).serve
	/usr/local/go/src/net/http/server.go:2092
ERROR	gin	ginzap/ginzap.go:89	failed to search: failed to hydrateHasOne	{"status": 500, "method": "GET", "path": "/torznab/api", "query": "t=search&q=Bottle+Rocket&offset=0&limit=100", "ip": "49.43.5.183", "user-agent": "Python/3.11 aiohttp/3.13.2", "latency": "31.491284ms", "time": "2025-11-28T03:52:01Z"}
github.com/bitmagnet-io/bitmagnet/internal/boilerplate/httpserver.New.func1.Ginzap.GinzapWithConfig.2
	/src/internal/boilerplate/httpserver/ginzap/ginzap.go:89
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
net/http.serverHandler.ServeHTTP
	/usr/local/go/src/net/http/server.go:3210
net/http.(*conn).serve
	/usr/local/go/src/net/http/server.go:2092
ERROR	gin	ginzap/ginzap.go:89	failed to search: failed to hydrateHasOne	{"status": 500, "method": "GET", "path": "/torznab/api", "query": "t=search&q=Bottle+Rocket&offset=100&limit=100", "ip": "49.43.5.183", "user-agent": "Python/3.11 aiohttp/3.13.2", "latency": "59.61565ms", "time": "2025-11-28T03:52:01Z"}
github.com/bitmagnet-io/bitmagnet/internal/boilerplate/httpserver.New.func1.Ginzap.GinzapWithConfig.2
	/src/internal/boilerplate/httpserver/ginzap/ginzap.go:89
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
net/http.serverHandler.ServeHTTP
	/usr/local/go/src/net/http/server.go:3210
net/http.(*conn).serve
	/usr/local/go/src/net/http/server.go:2092
ERROR	gin	ginzap/ginzap.go:89	failed to search: failed to hydrateHasOne	{"status": 500, "method": "GET", "path": "/torznab/api", "query": "t=search&q=The+Studio&offset=700&limit=100", "ip": "184.183.11.115", "user-agent": "Python/3.11 aiohttp/3.13.2", "latency": "840.962398ms", "time": "2025-11-28T03:52:15Z"}
github.com/bitmagnet-io/bitmagnet/internal/boilerplate/httpserver.New.func1.Ginzap.GinzapWithConfig.2
	/src/internal/boilerplate/httpserver/ginzap/ginzap.go:89
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
net/http.serverHandler.ServeHTTP
	/usr/local/go/src/net/http/server.go:3210
net/http.(*conn).serve
	/usr/local/go/src/net/http/server.go:2092

Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions