While executing a thirdParty API call using jakarta ClientBuilder, I am getting the following exception
(vert.x-eventloop-thread-1) A blocking operation occurred on the IO thread. This likely means you need to use the @io.smallrye.common.annotation.Blocking annotation on the Resource method, class or jakarta.
Here is the following snipet code which produces a error:
client = ClientBuilder.newBuilder().register(JacksonFeature.class).build();
client.target(ConfigHelper.wenBaseUrl)
.path(ConfigHelper.wenInfoOAuth)
.request()
.header(AUTHORIZATION, "Bearer " + userToken).get();
I tried configuring @Blocking @nonBlocking on the controller level and still the same error.