-
-
Notifications
You must be signed in to change notification settings - Fork 518
internal system error #136
Copy link
Copy link
Open
Description
when i use Proxy intercept, click "CANCEL", there will back error:internal system error or could not cancel http request: intercept: request not found, console log information:
runtime error: invalid memory address or nil pointer dereference
goroutine 52 [running]:
runtime/debug.Stack()
/opt/homebrew/Cellar/go/1.17.6/libexec/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
/opt/homebrew/Cellar/go/1.17.6/libexec/src/runtime/debug/stack.go:16 +0x19
github.com/99designs/gqlgen/graphql.DefaultRecover({0x1, 0x20}, {0xc2b980, 0x153ebd0})
/Users/dstotijn/go/pkg/mod/github.com/99designs/gqlgen@v0.14.0/graphql/recovery.go:17 +0x71
github.com/99designs/gqlgen/graphql.(*OperationContext).Recover(0x5e, {0xfae8c0, 0xc009909530}, {0xc2b980, 0x153ebd0})
/Users/dstotijn/go/pkg/mod/github.com/99designs/gqlgen@v0.14.0/graphql/context_operation.go:110 +0x3e
github.com/dstotijn/hetty/pkg/api.(*executionContext)._Mutation_cancelRequest.func1()
/Users/dstotijn/projects/hetty/pkg/api/generated.go:3604 +0x6a
panic({0xc2b980, 0x153ebd0})
/opt/homebrew/Cellar/go/1.17.6/libexec/src/runtime/panic.go:1038 +0x215
net/http.(*Request).WithContext(...)
/opt/homebrew/Cellar/go/1.17.6/libexec/src/net/http/request.go:360
github.com/dstotijn/hetty/pkg/proxy/intercept.(*Service).ModifyRequest(0xc000072e40, {0x1, 0x97, 0xe8, 0xab, 0xd6, 0x14, 0xd9, 0x78, 0xbb, ...}, ...)
/Users/dstotijn/projects/hetty/pkg/proxy/intercept/intercept.go:195 +0x15f
github.com/dstotijn/hetty/pkg/proxy/intercept.(*Service).CancelRequest(...)
/Users/dstotijn/projects/hetty/pkg/proxy/intercept/intercept.go:210
github.com/dstotijn/hetty/pkg/api.(*mutationResolver).CancelRequest(0xd0dc06, {0x2, 0x7fe9f19ea5b8}, {0x1, 0x97, 0xe8, 0xab, 0xd6, 0x14, 0xd9, ...})
/Users/dstotijn/projects/hetty/pkg/api/resolvers.go:575 +0x33
github.com/dstotijn/hetty/pkg/api.(*executionContext)._Mutation_cancelRequest.func2({0xfae8c0, 0xc009909530})
/Users/dstotijn/projects/hetty/pkg/api/generated.go:3626 +0xd4
github.com/99designs/gqlgen/graphql/executor.processExtensions.func3({0xfae8c0, 0xc009909530}, 0xc009909530)
/Users/dstotijn/go/pkg/mod/github.com/99designs/gqlgen@v0.14.0/graphql/executor/extensions.go:62 +0x26
github.com/dstotijn/hetty/pkg/api.(*executionContext)._Mutation_cancelRequest(0xc0095a0ba0, {0xfae8c0, 0xc009909500}, {0xc008fb9d80, {0xc008fa8e80, 0x1, 0x1}})
/Users/dstotijn/projects/hetty/pkg/api/generated.go:3624 +0x2e3
github.com/dstotijn/hetty/pkg/api.(*executionContext)._Mutation(0xc0095a0ba0, {0xfae8c0, 0xc0099094d0}, {0xc0095a0930, 0x1, 0x1})
/Users/dstotijn/projects/hetty/pkg/api/generated.go:7025 +0x9a6
github.com/dstotijn/hetty/pkg/api.(*executableSchema).Exec.func2({0xfae8c0, 0xc0099094d0})
/Users/dstotijn/projects/hetty/pkg/api/generated.go:1008 +0x5b
github.com/99designs/gqlgen/graphql/executor.(*Executor).DispatchOperation.func1.1.1({0xfae8c0, 0xc0099094d0})
/Users/dstotijn/go/pkg/mod/github.com/99designs/gqlgen@v0.14.0/graphql/executor/executor.go:105 +0x2b
github.com/99designs/gqlgen/graphql/executor.processExtensions.func2({0xfae8c0, 0xc0099094d0}, 0xbf4580)
/Users/dstotijn/go/pkg/mod/github.com/99designs/gqlgen@v0.14.0/graphql/executor/extensions.go:59 +0x26
github.com/99designs/gqlgen/graphql/executor.(*Executor).DispatchOperation.func1.1({0xfae8c0, 0xc009909470})
/Users/dstotijn/go/pkg/mod/github.com/99designs/gqlgen@v0.14.0/graphql/executor/executor.go:104 +0x110
github.com/99designs/gqlgen/graphql/handler/transport.POST.Do({}, {0xfa6010, 0xc00991c1c0}, 0xc00991eb00, {0xfa57d0, 0xc0000ec090})
/Users/dstotijn/go/pkg/mod/github.com/99designs/gqlgen@v0.14.0/graphql/handler/transport/http_post.go:53 +0x31a
github.com/99designs/gqlgen/graphql/handler.(*Server).ServeHTTP(0xc0000aaae0, {0xfa6010, 0xc00991c1c0}, 0xc00991eb00)
/Users/dstotijn/go/pkg/mod/github.com/99designs/gqlgen@v0.14.0/graphql/handler/server.go:115 +0x302
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002bc780, {0xfa6010, 0xc00991c1c0}, 0xc00991e800)
/Users/dstotijn/go/pkg/mod/github.com/gorilla/mux@v1.7.4/mux.go:210 +0x1cf
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002bc600, {0xfa6010, 0xc00991c1c0}, 0xc00991e600)
/Users/dstotijn/go/pkg/mod/github.com/gorilla/mux@v1.7.4/mux.go:210 +0x1cf
net/http.serverHandler.ServeHTTP({0xfa4878}, {0xfa6010, 0xc00991c1c0}, 0xc00991e600)
/opt/homebrew/Cellar/go/1.17.6/libexec/src/net/http/server.go:2879 +0x43b
net/http.(*conn).serve(0xc00029c3c0, {0xfae8c0, 0xc00008f650})
/opt/homebrew/Cellar/go/1.17.6/libexec/src/net/http/server.go:1930 +0xb08
created by net/http.(*Server).Serve
/opt/homebrew/Cellar/go/1.17.6/libexec/src/net/http/server.go:3034 +0x4e8it's look like null pointer error,but request is real,
screenshot:
i don't understand....
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels