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
There appears to be a bug down the client request chain as I am intermittently experiencing a nil panic at connectrpc.com/connect.wrapIfContextDone, to the point I've introduced an intentional recover explicitly for this.
I have even gone so far as to add a check immediately prior to the client call to ensure that context.Context is not nil, and to populate if so. Logs indicate this is never being tripped.
To Reproduce
Unfortunately, I cannot reproduce this.
Additional context
Very straight forward - two services, both using gen'd connect clients/servers.
Service A uses the (connect) client for Service B to make a request, and at times, results in a panic.
These services are bundled, so the gen'd code is all of the same version
I suspect this is fixed. It looks like in v1.15.0, this was possible because of this code, that constructs a connectUnaryUnmarshaler but fails to set the ctx field. So, when that field is nil, it could later produce the panic stack-trace above.
But that was fixed in #711here, which was released in v1.16.0.
Describe the bug
There appears to be a bug down the client request chain as I am intermittently experiencing a nil panic at
connectrpc.com/connect.wrapIfContextDone
, to the point I've introduced an intentionalrecover
explicitly for this.I have even gone so far as to add a check immediately prior to the client call to ensure that
context.Context
is not nil, and to populate if so. Logs indicate this is never being tripped.To Reproduce
Unfortunately, I cannot reproduce this.
Additional context
Very straight forward - two services, both using gen'd connect clients/servers.
Service A uses the (connect) client for Service B to make a request, and at times, results in a panic.
These services are bundled, so the gen'd code is all of the same version
Our connect imports:
Go v1.22
Stacktrace example:
Note: The recover lives at
implementation.go:63
The text was updated successfully, but these errors were encountered: