Open Daavidaviid opened 5 years ago
same here
Similar error with gqlopencensus:
// ...
handler.Tracer(gql.NewMultiTracer(gqlopencensus.New(), gqllogger.New()))
// ...
Dump:
interface conversion: interface {} is nil, not time.Time
goroutine 28 [running]:
runtime/debug.Stack(0x1, 0x0, 0x0)
/usr/local/Cellar/go/1.13/libexec/src/runtime/debug/stack.go:24 +0x9d
runtime/debug.PrintStack()
/usr/local/Cellar/go/1.13/libexec/src/runtime/debug/stack.go:16 +0x22
github.com/99designs/gqlgen/graphql.DefaultRecover(0x21ea260, 0xc0004ba880, 0x1dd9760, 0xc0005ac510, 0x203000, 0x203000)
/Users/leebenson/dev/omitted/vendor/github.com/99designs/gqlgen/graphql/recovery.go:16 +0xa7
github.com/99designs/gqlgen/handler.(*wsConnection).subscribe.func1.1(0xc00010a420, 0x21ea260, 0xc0004ba880, 0xc0005300c0, 0xc0004ba640)
/Users/leebenson/dev/omitted/vendor/github.com/99designs/gqlgen/handler/websocket.go:258 +0x73
panic(0x1dd9760, 0xc0005ac510)
/usr/local/Cellar/go/1.13/libexec/src/runtime/panic.go:679 +0x1b2
github.com/omitted/pkg/gqllogger.tracerImpl.EndOperationExecution(0x0, 0x21ea320, 0xc0005ac4e0)
/Users/leebenson/dev/omitted/pkg/gqllogger/tracer.go:126 +0x3c9
github.com/omitted/pkg/gql.multitracerImpl.EndOperationExecution(0xc0004546a0, 0x2, 0x2, 0x21ea320, 0xc0005ac4e0)
/Users/leebenson/dev/omitted/pkg/gql/multitracer.go:88 +0x6e
github.com/99designs/gqlgen/handler.Tracer.func1.1(0x21ea320, 0xc0005ac4e0, 0xc00059afa0, 0x1e95ca0, 0xc0005ac450, 0xc0004ba880)
/Users/leebenson/dev/omitted/vendor/github.com/99designs/gqlgen/handler/graphql.go:202 +0xbe
github.com/omitted/pkg/gql.(*executableSchema).Subscription.func1(0xc0001c0a00)
/Users/leebenson/dev/omitted/pkg/gql/exec.go:6519 +0xb5
github.com/99designs/gqlgen/handler.(*wsConnection).subscribe.func1(0xc00010a420, 0x21ea260, 0xc0004ba880, 0xc0005300c0, 0xc0004ba640, 0xc000375ce0, 0xc00046b1f0)
/Users/leebenson/dev/omitted/vendor/github.com/99designs/gqlgen/handler/websocket.go:263 +0xed
created by github.com/99designs/gqlgen/handler.(*wsConnection).subscribe
/Users/leebenson/dev/omitted/vendor/github.com/99designs/gqlgen/handler/websocket.go:255 +0x680
Hi,
I've been using gqlapollotracing but lately when I started playing with subscriptions I realized the subscriptions only work when I don't use tracing, otherwise I get this error when I subscribe to a subscription and a value is sent through the chan:
Here's where I use tracing :
So for the moment I'm just gonna stop using it. I'll try digging into it If I have time.
Thanks for your work.