Open loicmathieu opened 1 week ago
@ibrahimrabab @ibrandes @kyleknap @seanmcc-msft
Thank you for your feedback. Tagging and routing to the team member best able to assist.
I found a workaround but it's not pretty:
Something like that:
private final ExecutorService executorService = Executors.newSingleThreadExecutor();
private <T> T block(Mono<T> mono) {
try {
return executorService.submit(() -> mono.blockOptional().orElse(null)).get();
} catch (InterruptedException | ExecutionException e) {
throw new RuntimeException(e);
}
}
It not only happens for exist() but for any method of the BlobClient.
Describe the bug
Exception when calling BlobClientBase.exists().
Exception or Stack Trace
To Reproduce Using the following code in a Micronaut controller with file upload. The error shows up only for files of a certain size (more than 1MB).
Code Snippet
Setup (please complete the following information):
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report