Ask a Question

Unable to Receive Events from Eventhub using Groovy script

Sami_CSI
New Contributor

Unable to Receive Events from Eventhub using Groovy script

Hi All,

 

I am trying to get the event from Groovy script in ReadyAPI but it shows below exception. Also please find the attached file for the code.

Please help me on this. TIA.

Error:

java.lang.IllegalStateException: 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.
See Error Log for details.

2 REPLIES 2
Kitt
Regular Contributor

Did you try uncommenting the package imports? Or following the implementation instructions to create your own custom http client?

 

//import com.squareup.okhttp;
//import com.azure.storage.blob.*;

 

[[ kITt: keep IT testing ]]
Sami_CSI
New Contributor

Hi Kitt,

I have tried uncommenting the above imports. But it doesn't works and throws below issue.

Could please help with any assistance on how to add our own custom http client.

 

Thanks & Regards,

Md. Samiuddin

cancel
Showing results for 
Search instead for 
Did you mean: