Hey when we are trying to query workflows via code we are facing the following issue
Error: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)
Any idea, what is causing the issue
Hey when we are trying to query workflows via code we are facing the following issue
Error: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)
Any idea, what is causing the issue
There are many possible reasons for these errors, including some that just are purely network-level issues and can’t be avoided. But if you are seeing that error very frequently, then that’s most likely due to some bugs in Node’s HTTP2 library and/or the gRPC implementation. There’s been a lot of those issues fixed recently.
Make sure you are using a recent version of Node (ideally latest 20.x.y or 22.x.y), and try updating to TS SDK v1.11.7.
Hey @jwatkins,
Does temporal provide any retry functionality in these kind of issues? so that we don’t loose or fail any transaction due to this error.
Yes, the Temporal SDK has gRPC retry logic in place.
However, not all errors are retried. In particular, the infamous RST_STREAM with code 2
used not to be retried, because the gRPC library reports it with the gRPC INTERNAL
error code, which is totally ambiguous and mostly designates errors where retrying would be useless. We refined that behavior a few months ago.