You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
rahulsinghpatwal
changed the title
NewClient panics with non-Transport RoundTripper
NewClient panics when http.RoundTripper is *otelhttp.Transport
Mar 1, 2024
changing the http.DefaultTransport can have unexpected side effects and is non recommended praxis in Go.
Set the *http.Client and Http Roundtripper using SetClient
Expected Behavior:
I should be able to construct a Go client instance with an http.Client where http.RoundTripper is *otelhttp.Transport
Actual Behavior:
NewClient panics
getting below error on creating clent"-
panic: interface conversion: http.RoundTripper is *otelhttp.Transport, not *http.Transport
goroutine 1 [running]:
github.com/GetStream/stream-chat-go/v6.NewClient({0x13fa848, 0xc}, {0x1430def, 0x40}, {0x0, 0x0, 0x8?})
/home/Rahul/go/pkg/mod/github.com/!get!stream/stream-chat-go/[email protected]/client.go:80 +0x3ea
The text was updated successfully, but these errors were encountered: