panic in search handler #119

Closed
opened 2025-12-28 18:00:14 +00:00 by sami · 0 comments
Owner

Originally created by @roman-khimov on GitHub (Jul 18, 2025).

Originally assigned to: @smallhive on GitHub.

Current Behavior

1752855538078	2025-07-18T16:18:58.078Z	github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc000b68a00})
1752855538078	2025-07-18T16:18:58.078Z	github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc00012aa80}, 0xc000b6e000)
1752855538078	2025-07-18T16:18:58.078Z	net/http.(*conn).serve.func1()
1752855538078	2025-07-18T16:18:58.078Z		net/http/server.go:2102 +0x625
1752855538078	2025-07-18T16:18:58.078Z	panic({0xfd8540?, 0xc00229ab40?})
1752855538078	2025-07-18T16:18:58.078Z	echo: http: panic serving 127.0.0.1:59262: runtime error: index out of range [0] with length 0
1752855538078	2025-07-18T16:18:58.078Z	net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc00012aa80?}, 0x6?)
1752855538078	2025-07-18T16:18:58.078Z		github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505
1752855538078	2025-07-18T16:18:58.078Z	net/http.(*conn).serve(0xc001e07b00, {0x128e6a8, 0xc001dce3c0})
1752855538078	2025-07-18T16:18:58.078Z		github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db
1752855538078	2025-07-18T16:18:58.078Z	github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc000b68a00})
1752855538078	2025-07-18T16:18:58.078Z		net/http/server.go:3301 +0x8e
1752855538078	2025-07-18T16:18:58.078Z		net/http/server.go:3454 +0x485
1752855538078	2025-07-18T16:18:58.078Z		net/http/server.go:1947 +0xbe
1752855538078	2025-07-18T16:18:58.078Z	created by net/http.(*Server).Serve in goroutine 84
1752855538078	2025-07-18T16:18:58.078Z	github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc000b68a00}, {0xc00087ee51, 0x2c}, {0x0, 0xc002040638, 0xc002040640, 0x0, 0x0})
1752855538078	2025-07-18T16:18:58.078Z	goroutine 2545676 [running]:
1752855538078	2025-07-18T16:18:58.078Z		github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323
1752855538078	2025-07-18T16:18:58.078Z		github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45
1752855538078	2025-07-18T16:18:58.078Z		runtime/panic.go:792 +0x132
1752855646785	2025-07-18T16:20:46.785Z		github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323
1752855646785	2025-07-18T16:20:46.785Z	net/http.(*conn).serve.func1()
1752855646785	2025-07-18T16:20:46.785Z	github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc001d98c80})
1752855646785	2025-07-18T16:20:46.785Z	net/http.(*conn).serve(0xc0023c2000, {0x128e6a8, 0xc001dce3c0})
1752855646785	2025-07-18T16:20:46.785Z		net/http/server.go:1947 +0xbe
1752855646785	2025-07-18T16:20:46.785Z	github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc001d98c80}, {0xc001f0a011, 0x2c}, {0x0, 0xc00226a398, 0xc00226a3a0, 0x0, 0x0})
1752855646785	2025-07-18T16:20:46.785Z	echo: http: panic serving 127.0.0.1:59580: runtime error: index out of range [0] with length 0
1752855646785	2025-07-18T16:20:46.785Z		net/http/server.go:2102 +0x625
1752855646785	2025-07-18T16:20:46.785Z		github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505
1752855646785	2025-07-18T16:20:46.785Z	github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc0002f2540}, 0xc0010ee000)
1752855646785	2025-07-18T16:20:46.785Z		github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45
1752855646785	2025-07-18T16:20:46.785Z		net/http/server.go:3301 +0x8e
1752855646785	2025-07-18T16:20:46.785Z	github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc001d98c80})
1752855646785	2025-07-18T16:20:46.785Z	net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc0002f2540?}, 0x6?)
1752855646785	2025-07-18T16:20:46.785Z		runtime/panic.go:792 +0x132
1752855646785	2025-07-18T16:20:46.785Z		net/http/server.go:3454 +0x485
1752855646785	2025-07-18T16:20:46.785Z	created by net/http.(*Server).Serve in goroutine 84
1752855646785	2025-07-18T16:20:46.785Z	goroutine 2545772 [running]:
1752855646785	2025-07-18T16:20:46.785Z	panic({0xfd8540?, 0xc000284288?})
1752855646785	2025-07-18T16:20:46.785Z		github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db
1752855678488	2025-07-18T16:21:18.488Z	github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc00012a620}, 0xc00039f900)
1752855678488	2025-07-18T16:21:18.488Z	goroutine 2545930 [running]:
1752855678488	2025-07-18T16:21:18.488Z		github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45
1752855678488	2025-07-18T16:21:18.488Z		net/http/server.go:3301 +0x8e
1752855678488	2025-07-18T16:21:18.488Z	net/http.(*conn).serve.func1()
1752855678488	2025-07-18T16:21:18.488Z	github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc000b688c0})
1752855678488	2025-07-18T16:21:18.488Z		net/http/server.go:2102 +0x625
1752855678488	2025-07-18T16:21:18.488Z	net/http.(*conn).serve(0xc001e10b40, {0x128e6a8, 0xc001dce3c0})
1752855678488	2025-07-18T16:21:18.488Z	github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc000b688c0}, {0xc0001a45b1, 0x2c}, {0x0, 0xc0021b6700, 0xc0021b6708, 0x0, 0x0})
1752855678488	2025-07-18T16:21:18.488Z		github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323
1752855678488	2025-07-18T16:21:18.488Z	github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc000b688c0})
1752855678488	2025-07-18T16:21:18.488Z	net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc00012a620?}, 0x6?)
1752855678488	2025-07-18T16:21:18.488Z		github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505
1752855678488	2025-07-18T16:21:18.488Z	created by net/http.(*Server).Serve in goroutine 84
1752855678488	2025-07-18T16:21:18.488Z	panic({0xfd8540?, 0xc00010c318?})
1752855678488	2025-07-18T16:21:18.488Z		github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db
1752855678488	2025-07-18T16:21:18.488Z	echo: http: panic serving 127.0.0.1:38688: runtime error: index out of range [0] with length 0
1752855678488	2025-07-18T16:21:18.488Z		net/http/server.go:3454 +0x485
1752855678488	2025-07-18T16:21:18.488Z		net/http/server.go:1947 +0xbe
1752855678488	2025-07-18T16:21:18.488Z		runtime/panic.go:792 +0x132
1752855691831	2025-07-18T16:21:31.831Z	github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc00012a000}, 0xc002220000)
1752855691831	2025-07-18T16:21:31.831Z	goroutine 2546003 [running]:
1752855691831	2025-07-18T16:21:31.831Z		github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db
1752855691831	2025-07-18T16:21:31.831Z		net/http/server.go:3301 +0x8e
1752855691831	2025-07-18T16:21:31.831Z	net/http.(*conn).serve.func1()
1752855691831	2025-07-18T16:21:31.831Z		runtime/panic.go:792 +0x132
1752855691831	2025-07-18T16:21:31.831Z	echo: http: panic serving 127.0.0.1:43262: runtime error: index out of range [0] with length 0
1752855691831	2025-07-18T16:21:31.831Z	net/http.(*conn).serve(0xc001e06cf0, {0x128e6a8, 0xc001dce3c0})
1752855691831	2025-07-18T16:21:31.831Z	github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc000112dc0}, {0xc001186b51, 0x2c}, {0x0, 0xc0020ca4d8, 0xc0020ca4e0, 0x0, 0x0})
1752855691831	2025-07-18T16:21:31.831Z	created by net/http.(*Server).Serve in goroutine 84
1752855691831	2025-07-18T16:21:31.831Z	github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc000112dc0})
1752855691831	2025-07-18T16:21:31.831Z	net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc00012a000?}, 0x6?)
1752855691831	2025-07-18T16:21:31.831Z		github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505
1752855691831	2025-07-18T16:21:31.831Z		github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323
1752855691831	2025-07-18T16:21:31.831Z	panic({0xfd8540?, 0xc0003fe0f0?})
1752855691831	2025-07-18T16:21:31.831Z		github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45
1752855691831	2025-07-18T16:21:31.831Z		net/http/server.go:2102 +0x625
1752855691831	2025-07-18T16:21:31.831Z		net/http/server.go:3454 +0x485
1752855691831	2025-07-18T16:21:31.831Z		net/http/server.go:1947 +0xbe
1752855691831	2025-07-18T16:21:31.831Z	github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc000112dc0})
1752855702780	2025-07-18T16:21:42.780Z		github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323
1752855702780	2025-07-18T16:21:42.780Z	net/http.(*conn).serve.func1()
1752855702780	2025-07-18T16:21:42.780Z	github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc000b68000})
1752855702780	2025-07-18T16:21:42.780Z	net/http.(*conn).serve(0xc002168090, {0x128e6a8, 0xc001dce3c0})
1752855702780	2025-07-18T16:21:42.780Z		net/http/server.go:1947 +0xbe
1752855702780	2025-07-18T16:21:42.780Z	github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc000b68000}, {0xc001ef2071, 0x2c}, {0x0, 0xc0002b4320, 0xc0002b4328, 0x0, 0x0})
1752855702780	2025-07-18T16:21:42.780Z		net/http/server.go:3454 +0x485
1752855702780	2025-07-18T16:21:42.780Z		net/http/server.go:2102 +0x625
1752855702780	2025-07-18T16:21:42.780Z		github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505
1752855702780	2025-07-18T16:21:42.780Z	github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc0002f2460}, 0xc001220000)
1752855702780	2025-07-18T16:21:42.780Z		github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45
1752855702780	2025-07-18T16:21:42.780Z		net/http/server.go:3301 +0x8e
1752855702780	2025-07-18T16:21:42.780Z	github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc000b68000})
1752855702780	2025-07-18T16:21:42.780Z	net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc0002f2460?}, 0x6?)
1752855702780	2025-07-18T16:21:42.780Z		runtime/panic.go:792 +0x132
1752855702780	2025-07-18T16:21:42.780Z	echo: http: panic serving 127.0.0.1:52204: runtime error: index out of range [0] with length 0
1752855702780	2025-07-18T16:21:42.780Z	created by net/http.(*Server).Serve in goroutine 84
1752855702780	2025-07-18T16:21:42.780Z	goroutine 2545959 [running]:
1752855702780	2025-07-18T16:21:42.780Z		github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db
1752855702780	2025-07-18T16:21:42.780Z	panic({0xfd8540?, 0xc0003fe060?})
1752855713388	2025-07-18T16:21:53.388Z	github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc00012a8c0}, 0xc00019adc0)
1752855713388	2025-07-18T16:21:53.388Z		net/http/server.go:3454 +0x485
1752855713388	2025-07-18T16:21:53.388Z		github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db
1752855713388	2025-07-18T16:21:53.388Z		net/http/server.go:3301 +0x8e
1752855713388	2025-07-18T16:21:53.388Z	net/http.(*conn).serve.func1()
1752855713388	2025-07-18T16:21:53.388Z		runtime/panic.go:792 +0x132
1752855713388	2025-07-18T16:21:53.388Z	created by net/http.(*Server).Serve in goroutine 84
1752855713388	2025-07-18T16:21:53.388Z	net/http.(*conn).serve(0xc0023c2870, {0x128e6a8, 0xc001dce3c0})
1752855713388	2025-07-18T16:21:53.388Z	github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc000b694a0}, {0xc001f0a851, 0x2c}, {0x0, 0xc0023216c0, 0xc0023216c8, 0x0, 0x0})
1752855713388	2025-07-18T16:21:53.388Z		github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45
1752855713388	2025-07-18T16:21:53.388Z	goroutine 2546031 [running]:
1752855713388	2025-07-18T16:21:53.388Z	net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc00012a8c0?}, 0x6?)
1752855713388	2025-07-18T16:21:53.388Z		github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505
1752855713388	2025-07-18T16:21:53.388Z		github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323
1752855713388	2025-07-18T16:21:53.388Z	panic({0xfd8540?, 0xc0002843f0?})
1752855713388	2025-07-18T16:21:53.388Z	github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc000b694a0})
1752855713388	2025-07-18T16:21:53.388Z		net/http/server.go:2102 +0x625
1752855713388	2025-07-18T16:21:53.388Z	echo: http: panic serving 127.0.0.1:54768: runtime error: index out of range [0] with length 0
1752855713388	2025-07-18T16:21:53.388Z		net/http/server.go:1947 +0xbe
1752855713388	2025-07-18T16:21:53.388Z	github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc000b694a0})
1752855724271	2025-07-18T16:22:04.271Z	created by net/http.(*Server).Serve in goroutine 84
1752855724271	2025-07-18T16:22:04.271Z		github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505
1752855724271	2025-07-18T16:22:04.271Z		github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323
1752855724271	2025-07-18T16:22:04.271Z		net/http/server.go:1947 +0xbe
1752855724271	2025-07-18T16:22:04.271Z	github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc00046cdc0}, {0xc001f0a011, 0x2c}, {0x0, 0xc002320140, 0xc002320148, 0x0, 0x0})
1752855724271	2025-07-18T16:22:04.271Z		net/http/server.go:2102 +0x625
1752855724271	2025-07-18T16:22:04.271Z	github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc00012a000}, 0xc00019a140)
1752855724271	2025-07-18T16:22:04.271Z	goroutine 2546064 [running]:
1752855724271	2025-07-18T16:22:04.271Z	net/http.(*conn).serve(0xc0023c2000, {0x128e6a8, 0xc001dce3c0})
1752855724271	2025-07-18T16:22:04.271Z		net/http/server.go:3454 +0x485
1752855724271	2025-07-18T16:22:04.271Z		github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db
1752855724271	2025-07-18T16:22:04.271Z	net/http.(*conn).serve.func1()

Expected Behavior

No panics.

Possible Solution

Fix the damn thing.

Steps to Reproduce

Unknown.

Context

mainnet.

Regression

Doesn't look like.

Your Environment

  • Version of the product used: 0.12.0
Originally created by @roman-khimov on GitHub (Jul 18, 2025). Originally assigned to: @smallhive on GitHub. ## Current Behavior ``` 1752855538078 2025-07-18T16:18:58.078Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc000b68a00}) 1752855538078 2025-07-18T16:18:58.078Z github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc00012aa80}, 0xc000b6e000) 1752855538078 2025-07-18T16:18:58.078Z net/http.(*conn).serve.func1() 1752855538078 2025-07-18T16:18:58.078Z net/http/server.go:2102 +0x625 1752855538078 2025-07-18T16:18:58.078Z panic({0xfd8540?, 0xc00229ab40?}) 1752855538078 2025-07-18T16:18:58.078Z echo: http: panic serving 127.0.0.1:59262: runtime error: index out of range [0] with length 0 1752855538078 2025-07-18T16:18:58.078Z net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc00012aa80?}, 0x6?) 1752855538078 2025-07-18T16:18:58.078Z github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505 1752855538078 2025-07-18T16:18:58.078Z net/http.(*conn).serve(0xc001e07b00, {0x128e6a8, 0xc001dce3c0}) 1752855538078 2025-07-18T16:18:58.078Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db 1752855538078 2025-07-18T16:18:58.078Z github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc000b68a00}) 1752855538078 2025-07-18T16:18:58.078Z net/http/server.go:3301 +0x8e 1752855538078 2025-07-18T16:18:58.078Z net/http/server.go:3454 +0x485 1752855538078 2025-07-18T16:18:58.078Z net/http/server.go:1947 +0xbe 1752855538078 2025-07-18T16:18:58.078Z created by net/http.(*Server).Serve in goroutine 84 1752855538078 2025-07-18T16:18:58.078Z github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc000b68a00}, {0xc00087ee51, 0x2c}, {0x0, 0xc002040638, 0xc002040640, 0x0, 0x0}) 1752855538078 2025-07-18T16:18:58.078Z goroutine 2545676 [running]: 1752855538078 2025-07-18T16:18:58.078Z github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323 1752855538078 2025-07-18T16:18:58.078Z github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45 1752855538078 2025-07-18T16:18:58.078Z runtime/panic.go:792 +0x132 1752855646785 2025-07-18T16:20:46.785Z github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323 1752855646785 2025-07-18T16:20:46.785Z net/http.(*conn).serve.func1() 1752855646785 2025-07-18T16:20:46.785Z github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc001d98c80}) 1752855646785 2025-07-18T16:20:46.785Z net/http.(*conn).serve(0xc0023c2000, {0x128e6a8, 0xc001dce3c0}) 1752855646785 2025-07-18T16:20:46.785Z net/http/server.go:1947 +0xbe 1752855646785 2025-07-18T16:20:46.785Z github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc001d98c80}, {0xc001f0a011, 0x2c}, {0x0, 0xc00226a398, 0xc00226a3a0, 0x0, 0x0}) 1752855646785 2025-07-18T16:20:46.785Z echo: http: panic serving 127.0.0.1:59580: runtime error: index out of range [0] with length 0 1752855646785 2025-07-18T16:20:46.785Z net/http/server.go:2102 +0x625 1752855646785 2025-07-18T16:20:46.785Z github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505 1752855646785 2025-07-18T16:20:46.785Z github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc0002f2540}, 0xc0010ee000) 1752855646785 2025-07-18T16:20:46.785Z github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45 1752855646785 2025-07-18T16:20:46.785Z net/http/server.go:3301 +0x8e 1752855646785 2025-07-18T16:20:46.785Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc001d98c80}) 1752855646785 2025-07-18T16:20:46.785Z net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc0002f2540?}, 0x6?) 1752855646785 2025-07-18T16:20:46.785Z runtime/panic.go:792 +0x132 1752855646785 2025-07-18T16:20:46.785Z net/http/server.go:3454 +0x485 1752855646785 2025-07-18T16:20:46.785Z created by net/http.(*Server).Serve in goroutine 84 1752855646785 2025-07-18T16:20:46.785Z goroutine 2545772 [running]: 1752855646785 2025-07-18T16:20:46.785Z panic({0xfd8540?, 0xc000284288?}) 1752855646785 2025-07-18T16:20:46.785Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db 1752855678488 2025-07-18T16:21:18.488Z github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc00012a620}, 0xc00039f900) 1752855678488 2025-07-18T16:21:18.488Z goroutine 2545930 [running]: 1752855678488 2025-07-18T16:21:18.488Z github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45 1752855678488 2025-07-18T16:21:18.488Z net/http/server.go:3301 +0x8e 1752855678488 2025-07-18T16:21:18.488Z net/http.(*conn).serve.func1() 1752855678488 2025-07-18T16:21:18.488Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc000b688c0}) 1752855678488 2025-07-18T16:21:18.488Z net/http/server.go:2102 +0x625 1752855678488 2025-07-18T16:21:18.488Z net/http.(*conn).serve(0xc001e10b40, {0x128e6a8, 0xc001dce3c0}) 1752855678488 2025-07-18T16:21:18.488Z github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc000b688c0}, {0xc0001a45b1, 0x2c}, {0x0, 0xc0021b6700, 0xc0021b6708, 0x0, 0x0}) 1752855678488 2025-07-18T16:21:18.488Z github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323 1752855678488 2025-07-18T16:21:18.488Z github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc000b688c0}) 1752855678488 2025-07-18T16:21:18.488Z net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc00012a620?}, 0x6?) 1752855678488 2025-07-18T16:21:18.488Z github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505 1752855678488 2025-07-18T16:21:18.488Z created by net/http.(*Server).Serve in goroutine 84 1752855678488 2025-07-18T16:21:18.488Z panic({0xfd8540?, 0xc00010c318?}) 1752855678488 2025-07-18T16:21:18.488Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db 1752855678488 2025-07-18T16:21:18.488Z echo: http: panic serving 127.0.0.1:38688: runtime error: index out of range [0] with length 0 1752855678488 2025-07-18T16:21:18.488Z net/http/server.go:3454 +0x485 1752855678488 2025-07-18T16:21:18.488Z net/http/server.go:1947 +0xbe 1752855678488 2025-07-18T16:21:18.488Z runtime/panic.go:792 +0x132 1752855691831 2025-07-18T16:21:31.831Z github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc00012a000}, 0xc002220000) 1752855691831 2025-07-18T16:21:31.831Z goroutine 2546003 [running]: 1752855691831 2025-07-18T16:21:31.831Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db 1752855691831 2025-07-18T16:21:31.831Z net/http/server.go:3301 +0x8e 1752855691831 2025-07-18T16:21:31.831Z net/http.(*conn).serve.func1() 1752855691831 2025-07-18T16:21:31.831Z runtime/panic.go:792 +0x132 1752855691831 2025-07-18T16:21:31.831Z echo: http: panic serving 127.0.0.1:43262: runtime error: index out of range [0] with length 0 1752855691831 2025-07-18T16:21:31.831Z net/http.(*conn).serve(0xc001e06cf0, {0x128e6a8, 0xc001dce3c0}) 1752855691831 2025-07-18T16:21:31.831Z github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc000112dc0}, {0xc001186b51, 0x2c}, {0x0, 0xc0020ca4d8, 0xc0020ca4e0, 0x0, 0x0}) 1752855691831 2025-07-18T16:21:31.831Z created by net/http.(*Server).Serve in goroutine 84 1752855691831 2025-07-18T16:21:31.831Z github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc000112dc0}) 1752855691831 2025-07-18T16:21:31.831Z net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc00012a000?}, 0x6?) 1752855691831 2025-07-18T16:21:31.831Z github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505 1752855691831 2025-07-18T16:21:31.831Z github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323 1752855691831 2025-07-18T16:21:31.831Z panic({0xfd8540?, 0xc0003fe0f0?}) 1752855691831 2025-07-18T16:21:31.831Z github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45 1752855691831 2025-07-18T16:21:31.831Z net/http/server.go:2102 +0x625 1752855691831 2025-07-18T16:21:31.831Z net/http/server.go:3454 +0x485 1752855691831 2025-07-18T16:21:31.831Z net/http/server.go:1947 +0xbe 1752855691831 2025-07-18T16:21:31.831Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc000112dc0}) 1752855702780 2025-07-18T16:21:42.780Z github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323 1752855702780 2025-07-18T16:21:42.780Z net/http.(*conn).serve.func1() 1752855702780 2025-07-18T16:21:42.780Z github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc000b68000}) 1752855702780 2025-07-18T16:21:42.780Z net/http.(*conn).serve(0xc002168090, {0x128e6a8, 0xc001dce3c0}) 1752855702780 2025-07-18T16:21:42.780Z net/http/server.go:1947 +0xbe 1752855702780 2025-07-18T16:21:42.780Z github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc000b68000}, {0xc001ef2071, 0x2c}, {0x0, 0xc0002b4320, 0xc0002b4328, 0x0, 0x0}) 1752855702780 2025-07-18T16:21:42.780Z net/http/server.go:3454 +0x485 1752855702780 2025-07-18T16:21:42.780Z net/http/server.go:2102 +0x625 1752855702780 2025-07-18T16:21:42.780Z github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505 1752855702780 2025-07-18T16:21:42.780Z github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc0002f2460}, 0xc001220000) 1752855702780 2025-07-18T16:21:42.780Z github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45 1752855702780 2025-07-18T16:21:42.780Z net/http/server.go:3301 +0x8e 1752855702780 2025-07-18T16:21:42.780Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc000b68000}) 1752855702780 2025-07-18T16:21:42.780Z net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc0002f2460?}, 0x6?) 1752855702780 2025-07-18T16:21:42.780Z runtime/panic.go:792 +0x132 1752855702780 2025-07-18T16:21:42.780Z echo: http: panic serving 127.0.0.1:52204: runtime error: index out of range [0] with length 0 1752855702780 2025-07-18T16:21:42.780Z created by net/http.(*Server).Serve in goroutine 84 1752855702780 2025-07-18T16:21:42.780Z goroutine 2545959 [running]: 1752855702780 2025-07-18T16:21:42.780Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db 1752855702780 2025-07-18T16:21:42.780Z panic({0xfd8540?, 0xc0003fe060?}) 1752855713388 2025-07-18T16:21:53.388Z github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc00012a8c0}, 0xc00019adc0) 1752855713388 2025-07-18T16:21:53.388Z net/http/server.go:3454 +0x485 1752855713388 2025-07-18T16:21:53.388Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db 1752855713388 2025-07-18T16:21:53.388Z net/http/server.go:3301 +0x8e 1752855713388 2025-07-18T16:21:53.388Z net/http.(*conn).serve.func1() 1752855713388 2025-07-18T16:21:53.388Z runtime/panic.go:792 +0x132 1752855713388 2025-07-18T16:21:53.388Z created by net/http.(*Server).Serve in goroutine 84 1752855713388 2025-07-18T16:21:53.388Z net/http.(*conn).serve(0xc0023c2870, {0x128e6a8, 0xc001dce3c0}) 1752855713388 2025-07-18T16:21:53.388Z github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc000b694a0}, {0xc001f0a851, 0x2c}, {0x0, 0xc0023216c0, 0xc0023216c8, 0x0, 0x0}) 1752855713388 2025-07-18T16:21:53.388Z github.com/labstack/echo/v4@v4.13.3/echo.go:581 +0x45 1752855713388 2025-07-18T16:21:53.388Z goroutine 2546031 [running]: 1752855713388 2025-07-18T16:21:53.388Z net/http.serverHandler.ServeHTTP({0x1287b78?}, {0x128cb80?, 0xc00012a8c0?}, 0x6?) 1752855713388 2025-07-18T16:21:53.388Z github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505 1752855713388 2025-07-18T16:21:53.388Z github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323 1752855713388 2025-07-18T16:21:53.388Z panic({0xfd8540?, 0xc0002843f0?}) 1752855713388 2025-07-18T16:21:53.388Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver.(*ServerInterfaceWrapper).SearchObjects(0xc00236d5a0, {0x12a8b88, 0xc000b694a0}) 1752855713388 2025-07-18T16:21:53.388Z net/http/server.go:2102 +0x625 1752855713388 2025-07-18T16:21:53.388Z echo: http: panic serving 127.0.0.1:54768: runtime error: index out of range [0] with length 0 1752855713388 2025-07-18T16:21:53.388Z net/http/server.go:1947 +0xbe 1752855713388 2025-07-18T16:21:53.388Z github.com/labstack/echo/v4.(*Echo).add.func1({0x12a8b88, 0xc000b694a0}) 1752855724271 2025-07-18T16:22:04.271Z created by net/http.(*Server).Serve in goroutine 84 1752855724271 2025-07-18T16:22:04.271Z github.com/nspcc-dev/neofs-rest-gw/handlers/objects.go:372 +0x1505 1752855724271 2025-07-18T16:22:04.271Z github.com/labstack/echo/v4@v4.13.3/echo.go:668 +0x323 1752855724271 2025-07-18T16:22:04.271Z net/http/server.go:1947 +0xbe 1752855724271 2025-07-18T16:22:04.271Z github.com/nspcc-dev/neofs-rest-gw/handlers.(*RestAPI).SearchObjects(0xc0001fbe30, {0x12a8b88, 0xc00046cdc0}, {0xc001f0a011, 0x2c}, {0x0, 0xc002320140, 0xc002320148, 0x0, 0x0}) 1752855724271 2025-07-18T16:22:04.271Z net/http/server.go:2102 +0x625 1752855724271 2025-07-18T16:22:04.271Z github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc001f75b08, {0x128cb80, 0xc00012a000}, 0xc00019a140) 1752855724271 2025-07-18T16:22:04.271Z goroutine 2546064 [running]: 1752855724271 2025-07-18T16:22:04.271Z net/http.(*conn).serve(0xc0023c2000, {0x128e6a8, 0xc001dce3c0}) 1752855724271 2025-07-18T16:22:04.271Z net/http/server.go:3454 +0x485 1752855724271 2025-07-18T16:22:04.271Z github.com/nspcc-dev/neofs-rest-gw/handlers/apiserver/rest-server.gen.go:2532 +0x7db 1752855724271 2025-07-18T16:22:04.271Z net/http.(*conn).serve.func1() ``` ## Expected Behavior No panics. ## Possible Solution Fix the damn thing. ## Steps to Reproduce Unknown. ## Context mainnet. ## Regression Doesn't look like. ## Your Environment * Version of the product used: 0.12.0
sami 2025-12-28 18:00:14 +00:00
  • closed this issue
  • added the
    bug
    S4
    I4
    U1
    labels
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
nspcc-dev/neofs-rest-gw#119
No description provided.