Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thomaspeng90s opened this issue Mar 5, 2024 · 0 comments
Open

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

thomaspeng90s opened this issue Mar 5, 2024 · 0 comments

Comments

@thomaspeng90s
Copy link

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant