req
req copied to clipboard
nil pointer panic
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0xe pc=0x47410b]
goroutine 168733876 [running]: bytes.(*Buffer).Write(0xc1ac22f470, {0xc1ac064780, 0x26, 0xc1d5dd67c8}) /var/jenkins_home/go/go1.17.9/src/bytes/buffer.go:174 +0xb5 github.com/imroc/req/v3/internal/dump.(*Dumper).Dump(0xc1abc59f38, {0xc1ac064780, 0x26, 0x30}) /root/go/pkg/mod/github.com/imroc/req/[email protected]/internal/dump/dump.go:138 +0xd6 github.com/imroc/req/v3/internal/http2.(*ClientConn).encodeHeaders.func3({0x1ed8960, 0xa}, {0xc1ac216e88, 0x18}) /root/go/pkg/mod/github.com/imroc/req/[email protected]/internal/http2/transport.go:1821 +0xf8 github.com/imroc/req/v3/internal/http2.(*ClientConn).encodeHeaders.func4({0x1ed8960, 0x24e}, {0xc1ac216e88, 0xc1d5dd6958}) /root/go/pkg/mod/github.com/imroc/req/[email protected]/internal/http2/transport.go:1836 +0x6c github.com/imroc/req/v3/internal/http2.(*ClientConn).encodeHeaders.func1(0xc1d5dd6b10) /root/go/pkg/mod/github.com/imroc/req/[email protected]/internal/http2/transport.go:1710 +0x97 github.com/imroc/req/v3/internal/http2.(*ClientConn).encodeHeaders(0xc1858aaa80, 0xc1ac240800, 0x1, {0x0, 0x0}, 0x245, {0xc1df1acb28, 0x1, 0x1dfd320}) /root/go/pkg/mod/github.com/imroc/req/[email protected]/internal/http2/transport.go:1829 +0x72b github.com/imroc/req/v3/internal/http2.(*clientStream).encodeAndWriteHeaders(0xc1aa760c00, 0xc1ac240800, {0xc1df1acb28, 0x1, 0x1}) /root/go/pkg/mod/github.com/imroc/req/[email protected]/internal/http2/transport.go:1309 +0x350 github.com/imroc/req/v3/internal/http2.(*clientStream).writeRequest(0xc1aa760c00, 0xc1ac240800) /root/go/pkg/mod/github.com/imroc/req/[email protected]/internal/http2/transport.go:1196 +0x53e github.com/imroc/req/v3/internal/http2.(*clientStream).doRequest(0x0, 0xc1ac00ba80) /root/go/pkg/mod/github.com/imroc/req/[email protected]/internal/http2/transport.go:1109 +0x1e created by github.com/imroc/req/v3/internal/http2.(*ClientConn).RoundTrip /root/go/pkg/mod/github.com/imroc/req/[email protected]/internal/http2/transport.go:1038 +0x43d