商品列表报错

来源:31-2 商品的列表页接口-1

无限灬

2022-11-23

输入正文

2022/11/23 09:37:39 [Recovery] 2022/11/23 - 09:37:39 panic recovered:

GET /g/v1/goods HTTP/1.1

Host: 192.168.50.234:8322

Accept: */*

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

User-Agent: apifox/1.0.0 (https://www.apifox.cn)


no service name provided

/Users/zhangshikang/Documents/code/resources/mxshop-api/goods-web/middlewares/tracing.go:29 (0x104f1745b)

        Trace.func1: panic(err)

/Users/zhangshikang/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 (0x104ec2dc7)

        (*Context).Next: c.handlers[c.index](c)

/Users/zhangshikang/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/recovery.go:83 (0x104ec2da8)

        RecoveryWithWriter.func1: c.Next()

/Users/zhangshikang/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 (0x104ec212f)

        (*Context).Next: c.handlers[c.index](c)

/Users/zhangshikang/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/logger.go:241 (0x104ec210c)

        LoggerWithConfig.func1: c.Next()

/Users/zhangshikang/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 (0x104ec129b)

        (*Context).Next: c.handlers[c.index](c)

/Users/zhangshikang/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:409 (0x104ec0f70)

        (*Engine).handleHTTPRequest: c.Next()

/Users/zhangshikang/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:367 (0x104ec0ba3)

        (*Engine).ServeHTTP: engine.handleHTTPRequest(c)

/usr/local/go/src/net/http/server.go:2916 (0x104ab75cb)

        serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)

/usr/local/go/src/net/http/server.go:1966 (0x104ab2ceb)

        (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)

/usr/local/go/src/runtime/asm_arm64.s:1263 (0x10488e053)

        goexit: MOVD    R0, R0  // NOP


写回答

1回答

bobby

2022-11-25

你生成span的时候没有设置spanname吧

0
0

Go+Python打造电商系统 自研微服务框架 抓紧高薪机遇

快速转型Go工程师,成为具备双语言后端能力的开发者

512 学习 · 532 问题

查看课程