dapr / dapr/java-sdk

Somehow Mono.timeout() didn't work for me!

Open
#1,025 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
300
Forks
230
Avg merge
1d 20h
Merged PRs (30d)
4

Description

I am planning to use daprClient.invokeMethod to execute a remote method. The approximate code is as follows:

```java
daprClient.invokeMethod("app-id","method",new HashMap<>(),HttpExtension.POST,String.class)
.timeout(Duration.ofMinutes(5))
.block();
```

I hope to set the timeout of this method to 5 minutes, but this setting did not take effect. No matter how I tried, the request would throw a reactor.core.Exceptions$ReactiveException: java.net.SocketTimeoutException: timeout after 60 seconds. I am sure that accessing this API directly or through the dapr http interface can handle requests exceeding 1 minute. I don't know how to write the code to make it work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.