Hi @VenkateshDodda-MSFT - Your support was really helpful in our earlier queries. Please help us with this as well.
Async Email Client Creation Doesn't Work
We are using Azure Email Communication Service, (azure-communication-email, version - 1.0.17).
As per the documentation for instantiating async email Client, the sample code is the same as that of Sync email Client creation.
In addition to that, if we use the mentioned code of the Async client and combine it with the PollerFlux logic mentioned in the same documentation, it gives an error, (as it treats the mail client as Sync).
Referred Documentation - Link
Can you please provide the correct syntax for instantiating the async email client?
In the same context, earlier we were using the below code for instantiating the async email client and it used to work before-
EmailAsyncClient emailClient = new EmailClientBuilder() .endpoint(endpoint) .credential(azureKeyCredential) .buildAsyncClient();
But now we have started getting this error - {"msg":"A request was made to load the default HttpClient provider but one could not be found on the classpath. If you are using a dependency manager, consider including a dependency on azure-core-http-netty or azure-core-http-okhttp. Depending on your existing dependencies, you have the choice of Netty or OkHttp implementations. Additionally, refer to https://aka.ms/azsdk/java/docs/custom-httpclient to learn about writing your own implementation.","level":"ERROR","logger":"com.azure.core.implementation.util.Providers"}
Can you guide us on how can we fix the existing logic?