exception recovered: runtime error: invalid memory address or nil pointer dereference runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x65 golang.org/x/sync/singleflight.newPanicError({0x1330520?, 0xa093020}) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:44 +0x2c golang.org/x/sync/singleflight.(*Group).doCall.func2.1() /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:193 +0x3b panic({0x1330520, 0xa093020}) /usr/local/go/src/runtime/panic.go:884 +0x213 github.com/ip2location/ip2location-go/v9.(*DB).query(_, {_, _}, _) /home/pc/go/pkg/mod/github.com/ip2location/ip2location-go/v9@v9.7.0/ip2location.go:919 +0xbb github.com/ip2location/ip2location-go/v9.(*DB).Get_all(...) /home/pc/go/pkg/mod/github.com/ip2location/ip2location-go/v9@v9.7.0/ip2location.go:786 gtcms/utility/iploc.IPv4Loc({0xc07b3c8300?, 0x1a?}) /home/pc/ng-workspace/gtcms/uapi/utility/iploc/iploc.go:67 +0x6a gtcms/utility/iploc.IPLoc({0xc07b3c8300, 0xe}) /home/pc/ng-workspace/gtcms/uapi/utility/iploc/iploc.go:84 +0x65 gtcms/internal/logic/utility.(*sUtility).GetIPCity(0xc02606d8c0?, {0x96730c0?, 0xc0aa90e730?}, {0xc07b3c8300?, 0xc02637c720?}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/utility/utility.go:540 +0x2b gtcms/internal/logic/spider.(*sSpider).IsSpider(0x13?, {0x96730c0, 0xc02788a3e0}, 0x0?, {0x2, {0xc02637c730, 0xc}, {0xc07b3c8300, 0xe}, {0xc00b323aa0, ...}, ...}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/spider/spider.go:231 +0x148 gtcms/internal/logic/site.(*sSite).GetSiteByDomainName.func1() /home/pc/ng-workspace/gtcms/uapi/internal/logic/site/site.go:137 +0x391 gtcms/internal/logic/site.(*sSite).GetSiteByDomainName(0xc000bf69c0, {0x96730c0, 0xc02788a3e0}, {0xc00b323aa0, 0x13}, {0xc06def2db4, 0x15}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/site/site.go:173 +0x237 gtcms/internal/logic/utility.(*sUtility).Router(0x0?, 0xc00e8c8280) /home/pc/ng-workspace/gtcms/uapi/internal/logic/utility/utility.go:138 +0x229 gtcms/internal/logic/middleware.(*sMiddleware).Router.func1() /home/pc/ng-workspace/gtcms/uapi/internal/logic/middleware/middleware.go:82 +0x34 golang.org/x/sync/singleflight.(*Group).doCall.func2(0xc00d9f1f1e, 0xc03f1e6190, 0x7f1e8fcd05b8?) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:198 +0x6f golang.org/x/sync/singleflight.(*Group).doCall(0x13161a0?, 0xc02cef5b00?, {0xc06def2e40?, 0x28?}, 0xc02788a440?) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:200 +0xa5 golang.org/x/sync/singleflight.(*Group).Do(0xc00aa82940, {0xc06def2e40, 0x28}, 0xc068562480?) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:113 +0x165 gtcms/internal/logic/middleware.(*sMiddleware).Router(0xc00aa82940, 0xc00e8c8280) /home/pc/ng-workspace/gtcms/uapi/internal/logic/middleware/middleware.go:81 +0x3a9 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1() /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:55 +0x25 github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0x0?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_func.go:61 +0x3e github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1({0x4146e5?, 0x6?}) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:54 +0xaa github.com/gogf/gf/v2/util/gutil.Try({0x96730c0?, 0xc02788a3e0?}, 0x17f39e0d3b8712ed?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:36 +0x71 github.com/gogf/gf/v2/util/gutil.TryCatch({0x96730c0, 0xc02788a3e0}, 0x89777b?, 0xc00d9f2330) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:49 +0x39 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next(0xc079424e40) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:49 +0x154 gtcms/internal/logic/middleware.(*sMiddleware).HandlerResponse(0x0?, 0xc00e8c8280) /home/pc/ng-workspace/gtcms/uapi/internal/logic/middleware/middleware.go:194 +0x3a github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1() /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:55 +0x25 github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0x0?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_func.go:61 +0x3e github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1({0x34?, 0x151447c?}) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:54 +0xaa github.com/gogf/gf/v2/util/gutil.Try({0x96730c0?, 0xc02788a3e0?}, 0x1506cea?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:36 +0x71 github.com/gogf/gf/v2/util/gutil.TryCatch({0x96730c0, 0xc02788a3e0}, 0x965b888?, 0xc00d9f26d0) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:49 +0x39 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next(0xc079424e40) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:49 +0x154 gtcms/internal/logic/middleware.(*sMiddleware).SetCORSOptions(0x0?, 0xc00e8c8280) /home/pc/ng-workspace/gtcms/uapi/internal/logic/middleware/middleware.go:253 +0x90 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1() /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:55 +0x25 github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0x40474c?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_func.go:61 +0x3e github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1({0x0?, 0x0?}) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:54 +0xaa github.com/gogf/gf/v2/util/gutil.Try({0x96730c0?, 0xc02788a3e0?}, 0x40dc0a?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:36 +0x71 github.com/gogf/gf/v2/util/gutil.TryCatch({0x96730c0, 0xc02788a3e0}, 0x7f1e66b7c4d8?, 0xc00d9f2a30) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:49 +0x39 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next(0xc079424e40) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:49 +0x154 gtcms/internal/logic/middleware.(*sMiddleware).NeverDoneCtx(0x40dfe7?, 0xc00e8c8280) /home/pc/ng-workspace/gtcms/uapi/internal/logic/middleware/middleware.go:119 +0x15a github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.5() /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:96 +0x2f github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0x571894?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_func.go:61 +0x3e github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1({0xc00032dfb0?, 0x2a?}) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:95 +0x328 github.com/gogf/gf/v2/util/gutil.Try({0x9672ec8?, 0xc053acf1d0?}, 0x14b9f6a?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:36 +0x71 github.com/gogf/gf/v2/util/gutil.TryCatch({0x9672ec8, 0xc053acf1d0}, 0x0?, 0xc00d9f2dc8) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:49 +0x39 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next(0xc079424e40) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:49 +0x154 github.com/gogf/gf/v2/net/ghttp.internalMiddlewareServerTracing(0xc00e8c8280) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_middleware_tracing.go:79 +0x965 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.5() /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:96 +0x2f github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0x571894?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_func.go:61 +0x3e github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1({0x34630b8a000?, 0xc0447e7d00?}) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:95 +0x328 github.com/gogf/gf/v2/util/gutil.Try({0x9672ec8?, 0xc053aceff0?}, 0x3?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:36 +0x71 github.com/gogf/gf/v2/util/gutil.TryCatch({0x9672ec8, 0xc053aceff0}, 0xc053aceff0?, 0xc00d9f3990) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:49 +0x39 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next(0xc079424e40) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:49 +0x154 github.com/gogf/gf/v2/net/ghttp.(*Server).ServeHTTP(0xc045351c00, {0x96718d0?, 0xc00d9969a0}, 0xc041048d00) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_server_handler.go:88 +0x425 net/http.HandlerFunc.ServeHTTP(0x0?, {0x96718d0?, 0xc00d9969a0?}, 0x46b1ce?) /usr/local/go/src/net/http/server.go:2122 +0x2f net/http.serverHandler.ServeHTTP({0xc053aceea0?}, {0x96718d0, 0xc00d9969a0}, 0xc041048d00) /usr/local/go/src/net/http/server.go:2936 +0x316 net/http.(*conn).serve(0xc081c4f5f0, {0x9672ec8, 0xc02db43650}) /usr/local/go/src/net/http/server.go:1995 +0x612 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:3089 +0x5ed