-
Notifications
You must be signed in to change notification settings - Fork 2
Description
When I make a call to "CreateStream" in postman the app crashes:
Server started at port :8080
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x7e0226]
goroutine 10 [running]:
github.com/atharv-bhadange/grpc-chat/handler.(*Pool).CreateStream(0xc000012678, 0xc000310000, {0x9812c0, 0xc00030e1e0})
/home/dwilson/projects/grpc-chat/handler/handler.go:27 +0x86
github.com/atharv-bhadange/grpc-chat/gen._Broadcast_CreateStream_Handler({0x853840, 0xc000012678}, {0x97fee8, 0xc00030c000})
/home/dwilson/projects/grpc-chat/gen/chat_grpc.pb.go:115 +0x107
google.golang.org/grpc.(*Server).processStreamingRPC(0xc0001da1e0, {0x97e600, 0xc0001eede0}, {0x9819e0, 0xc0000e89c0}, 0xc000191560, 0xc0001ee870, 0xc84600, 0x0)
/home/dwilson/go/pkg/mod/google.golang.org/grpc@v1.59.0/server.go:1637 +0x12e8
google.golang.org/grpc.(*Server).handleStream(0xc0001da1e0, {0x9819e0, 0xc0000e89c0}, 0xc000191560)
/home/dwilson/go/pkg/mod/google.golang.org/grpc@v1.59.0/server.go:1741 +0xbf6
google.golang.org/grpc.(*Server).serveStreams.func1.1()
/home/dwilson/go/pkg/mod/google.golang.org/grpc@v1.59.0/server.go:986 +0x86
created by google.golang.org/grpc.(*Server).serveStreams.func1 in goroutine 9
/home/dwilson/go/pkg/mod/google.golang.org/grpc@v1.59.0/server.go:997 +0x13