-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RoundTripper returned a response & error; ignoring response #237
Comments
Hi @mdibaiee! Thank you for reporting this. I've found a suspicious place that may cause this, but, unfortunately, cannot reproduce this particular issue to check if my assumption is correct. Can you maybe provide more details on what you do to get this log message? Or anything else thay may help. Thanks! databricks-sql-go/internal/client/client.go Lines 527 to 531 in 34b7340
|
Hi @kravets-levko! Unfortunately this log was not accompanied by much else and the underlying reason is also enigmatic to me. The line you reference is probably the top of the hierarchy... I'd imagine there is some implementation of We don't pass a custom |
Thank you @mdibaiee! As I understand, this log output actually doesn't cause any further problems. I will keep an eye on it, maybe I'll reproduce it and/or find what causes it. If by any chance you'll have any updates on this - please let me know |
We are using this library in our connector: https://github.com/estuary/connectors/tree/main/materialize-databricks
We have been seeing this log from the library:
I did some investigation and it seems Golang's
http.Client
expects that only one ofresp
orerr
have a non-nil value in the response of aRoundTripper.RoundTrip
, see: https://github.com/golang/go/blob/release-branch.go1.22/src/net/http/client.go#L260-L264Also see the documentation here: https://pkg.go.dev/net/http#RoundTripper
A similar issue has been spotted and fixed here: nfx/slrp@5ea1bdd
I haven't yet found a way to fix this issue in this library, perhaps maintainers know better where to look for possible causes of this error.
The text was updated successfully, but these errors were encountered: