Skip to content

Commit 1e3adbf

Browse files
Merge branch 'rc3' of github.com:elena-kolevska/python-sdk into rc3
2 parents ebff15c + 4ac73bc commit 1e3adbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dapr/clients/grpc/subscription.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def next_message(self):
8484
return SubscriptionMessage(message.event_message)
8585
except RpcError as e:
8686
# If Dapr can't be reached, wait until it's ready and reconnect the stream
87-
if e.code() == StatusCode.UNAVAILABLE:
87+
if e.code() == StatusCode.UNAVAILABLE or e.code() == StatusCode.UNKNOWN:
8888
print(
8989
f'gRPC error while reading from stream: {e.details()}, Status Code: {e.code()}'
9090
)

0 commit comments

Comments
 (0)