Forum Discussion

Sami_CSI's avatar
New Contributor
2 years ago

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.


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 to learn about writing your own implementation.
See Error Log for details.

2 Replies

  • Kitt's avatar
    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;