Skip to content

Commit 8c1891a

Browse files
Adds a note to docs, for clarity
Signed-off-by: Elena Kolevska <elena@kolevska.com>
1 parent 37d8509 commit 8c1891a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

daprdocs/content/en/python-sdk-docs/python-client.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ You can read more about Dapr API token authentication [here](https://docs.dapr.i
7878
On client initialisation, a health check is performed against the Dapr sidecar (`/healthz/outbound`).
7979
The client will wait for the sidecar to be up and running before proceeding.
8080

81-
The default timeout is 60 seconds, but it can be overridden by setting the `DAPR_HEALTH_TIMEOUT`
81+
The default healthcheck timeout is 60 seconds, but it can be overridden by setting the `DAPR_HEALTH_TIMEOUT`
8282
environment variable.
8383

8484
##### Retries and timeout
@@ -115,6 +115,8 @@ proxy = ActorProxy.create('DemoActor', ActorId('1'), DemoActorInterface, factory
115115

116116
**Timeout** can be set for all calls through the environment variable `DAPR_API_TIMEOUT_SECONDS`. The default value is 60 seconds.
117117

118+
> Note: You can control timeouts on service invocation separately, by passing a `timeout` parameter to the `invoke_method` method.
119+
118120
## Error handling
119121
Initially, errors in Dapr followed the [Standard gRPC error model](https://grpc.io/docs/guides/error/#standard-error-model). However, to provide more detailed and informative error messages, in version 1.13 an enhanced error model has been introduced which aligns with the gRPC [Richer error model](https://grpc.io/docs/guides/error/#richer-error-model). In response, the Python SDK implemented `DaprGrpcError`, a custom exception class designed to improve the developer experience.
120122
It's important to note that the transition to using `DaprGrpcError` for all gRPC status exceptions is a work in progress. As of now, not every API call in the SDK has been updated to leverage this custom exception. We are actively working on this enhancement and welcome contributions from the community.

0 commit comments

Comments
 (0)