interface conversion interface is string not map string interface goro

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
interface conversion: interface {} is string, not map[string]interface {}
goroutine 36 [running]:
runtime/debug.Stack(0x1, 0x0, 0x0)
/usr/local/go/src/runtime/debug/stack.go:24 +0x9d
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x22
github.com/99designs/gqlgen/graphql.DefaultRecover(0xa2b380, 0xc00017d830, 0x8e8160, 0xc00017d8c0, 0xc0001c4c38, 0x40da46)
/home/ihor/go/pkg/mod/github.com/99designs/gqlgen@v0.11.0/graphql/recovery.go:18 +0xa7
github.com/iho/gumroad/graph/generated.(*executionContext)._Query_myProducts.func1(0xc00010aed0, 0xc00010af20, 0xc0001c5008)
/code/gumroad/graph/generated/generated.go:2018 +0x78
panic(0x8e8160, 0xc00017d8c0)
/usr/local/go/src/runtime/panic.go:679 +0x1b2
github.com/iho/gumroad/graph/generated.(*executionContext).unmarshalInputAuthToken(0xc00010aed0, 0xa2b380, 0xc00017d830, 0x8b5d20, 0xa16990, 0x120, 0x20, 0x20, 0xc000125b00)
/code/gumroad/graph/generated/generated.go:3396 +0x187
github.com/iho/gumroad/graph/generated.(*executionContext).unmarshalOAuthToken2githubᚗcomᚋihoᚋgumroadᚋgraphᚋmodelᚐAuthToken(...)
/code/gumroad/graph/generated/generated.go:4520
github.com/iho/gumroad/graph/generated.(*executionContext).unmarshalOAuthToken2ᚖgithubᚗcomᚋihoᚋgumroadᚋgraphᚋmodelᚐAuthToken(0xc00010aed0, 0xa2b380, 0xc00017d830, 0x8b5d20, 0xa16990, 0x203000, 0xc0001c4e08, 0x40e2b8)
/code/gumroad/graph/generated/generated.go:4527 +0x82
github.com/iho/gumroad/graph/generated.(*executionContext)._Query_myProducts.func2.2(0xa2b380, 0xc00017d830, 0x922cc0, 0x8b4f20, 0x17005cd8429d, 0x20)
/code/gumroad/graph/generated/generated.go:2043 +0x68
github.com/iho/gumroad/graph/generated.(*executionContext)._Query_myProducts.func2(0xa2b380, 0xc00017d830, 0x20, 0x922cc0, 0xc000126701, 0xc000125ae0)
/code/gumroad/graph/generated/generated.go:2053 +0xcf
github.com/99designs/gqlgen/graphql/handler.newExecutor.func3(0xa2b380, 0xc00017d830, 0xc000125ae0, 0xc00017d860, 0xc00017d890, 0x0, 0x0)
/home/ihor/go/pkg/mod/github.com/99designs/gqlgen@v0.11.0/graphql/handler/executor.go:36 +0x3a
github.com/iho/gumroad/graph/generated.(*executionContext)._Query_myProducts(0xc00010aed0, 0xa2b380, 0xc00017d800, 0xc00013cc80, 0xc000125ac0, 0x2, 0x2, 0x0, 0x0)
/code/gumroad/graph/generated/generated.go:2037 +0x2f0
github.com/iho/gumroad/graph/generated.(*executionContext)._Query.func3(0x0, 0x0)
/code/gumroad/graph/generated/generated.go:3800 +0xf3
github.com/99designs/gqlgen/graphql.(*FieldSet).Dispatch(0xc00012d2c0)
/home/ihor/go/pkg/mod/github.com/99designs/gqlgen@v0.11.0/graphql/fieldset.go:34 +0x1d1
github.com/iho/gumroad/graph/generated.(*executionContext)._Query(0xc00010aed0, 0xa2b380, 0xc00017d7d0, 0xc00010ac60, 0x1, 0x1, 0x40da46, 0xc00017d7d0)
/code/gumroad/graph/generated/generated.go:3828 +0x4b7
github.com/iho/gumroad/graph/generated.(*executableSchema).Exec.func1(0xa2b380, 0xc00017d7d0, 0x10)
/code/gumroad/graph/generated/generated.go:456 +0x7b
github.com/99designs/gqlgen/graphql/handler.executor.DispatchOperation.func1.1.1(0xa2b380, 0xc00017d7d0, 0xc00010aee0)
/home/ihor/go/pkg/mod/github.com/99designs/gqlgen@v0.11.0/graphql/handler/executor.go:100 +0x43
github.com/99designs/gqlgen/graphql/handler.newExecutor.func2(0xa2b380, 0xc00017d7d0, 0xc00010aee0, 0xa16780)
/home/ihor/go/pkg/mod/github.com/99designs/gqlgen@v0.11.0/graphql/handler/executor.go:33 +0x3a
github.com/99designs/gqlgen/graphql/handler.executor.DispatchOperation.func1.1(0xa2b380, 0xc00017d770, 0xc00017ced0)
/home/ihor/go/pkg/mod/github.com/99designs/gqlgen@v0.11.0/graphql/handler/executor.go:99 +0x130
github.com/99designs/gqlgen/graphql/handler/transport.POST.Do(0xa2a300, 0xc00014e380, 0xc000146800, 0xa2a680, 0xc00012d1d0)
/home/ihor/go/pkg/mod/github.com/99designs/gqlgen@v0.11.0/graphql/handler/transport/http_post.go:52 +0x353
github.com/99designs/gqlgen/graphql/handler.(*Server).ServeHTTP(0xc0001780b0, 0xa2a300, 0xc00014e380, 0xc000146800)
/home/ihor/go/pkg/mod/github.com/99designs/gqlgen@v0.11.0/graphql/handler/server.go:140 +0x23c
github.com/go-chi/chi.(*Mux).routeHTTP(0xc000108420, 0xa2a300, 0xc00014e380, 0xc000146700)
/home/ihor/go/pkg/mod/github.com/go-chi/chi@v4.0.3+incompatible/mux.go:425 +0x278
net/http.HandlerFunc.ServeHTTP(0xc00010a730, 0xa2a300, 0xc00014e380, 0xc000146700)
/usr/local/go/src/net/http/server.go:2007 +0x44
github.com/iho/gumroad/auth.Middleware.func1.1(0xa2a300, 0xc00014e380, 0xc000146600)
/code/gumroad/auth/auth.go:56 +0x464
net/http.HandlerFunc.ServeHTTP(0xc000107fb0, 0xa2a300, 0xc00014e380, 0xc000146600)
/usr/local/go/src/net/http/server.go:2007 +0x44
github.com/go-chi/jwtauth.Verify.func1.1(0xa2a300, 0xc00014e380, 0xc000146500)
/home/ihor/go/pkg/mod/github.com/go-chi/jwtauth@v4.0.4+incompatible/jwtauth.go:82 +0x1b0
net/http.HandlerFunc.ServeHTTP(0xc00014ce00, 0xa2a300, 0xc00014e380, 0xc000146500)
/usr/local/go/src/net/http/server.go:2007 +0x44
github.com/rs/cors.(*Cors).Handler.func1(0xa2a300, 0xc00014e380, 0xc000146500)
/home/ihor/go/pkg/mod/github.com/rs/cors@v1.7.0/cors.go:219 +0x1b8
net/http.HandlerFunc.ServeHTTP(0xc000124760, 0xa2a300, 0xc00014e380, 0xc000146500)
/usr/local/go/src/net/http/server.go:2007 +0x44
github.com/go-chi/chi.(*Mux).ServeHTTP(0xc000108420, 0xa2a300, 0xc00014e380, 0xc000146400)
/home/ihor/go/pkg/mod/github.com/go-chi/chi@v4.0.3+incompatible/mux.go:82 +0x2b2
net/http.serverHandler.ServeHTTP(0xc00014e1c0, 0xa2a300, 0xc00014e380, 0xc000146400)
/usr/local/go/src/net/http/server.go:2802 +0xa4
net/http.(*conn).serve(0xc000176280, 0xa2b2c0, 0xc00014d600)
/usr/local/go/src/net/http/server.go:1890 +0x875
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2928 +0x384