title: Quarkus Uni<Response> is not working as accepted?
body: <p>As I am working on QUarkus application I am trying to return Uni but it giving me error:</p>
  <pre><code>@GET
  @javax.ws.rs.Path(&quot;/notification/typeCount&quot;)
  @Produces({MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN}) 
  public Uni&lt;Response&gt; getNoti(){
        return Uni.createFrom().item(getAllCount()).onItem().transform(f -&gt; f != null ? Response.ok(f) : Response.ok(null))
        .onItem().transform(ResponseBuilder::build);
  }
  
  public Uni&lt;Object&gt; getAllCount() {
        
      try{        
          sql=&quot;my query&quot;; 
  
          return client.query(sql).execute().onItem().transform(pgRowSet -&gt; {
              Map&lt;String, Object&gt; l = CUtils.mapLogic(pgRowSet);
                  return l;
          });
      }
      catch(Exception e){
          return null;
      }
  }
  </code></pre>
  <p>But while calling this request from front-end it is giving me below error:</p>
  <blockquote>
  <p>RESTEASY002020: Unhandled asynchronous exception, sending back 500: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class io.smallrye.mutiny.context.ContextPropagationUniInterceptor$2 and no properties discovered to
  create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)</p>
  </blockquote>
  <p>Please let me know how to resolve it.</p>
  <p>I found one way but I don't think it's proper, if I change below lines:</p>
  <p>From:</p>
  <pre><code>return Uni.createFrom().item(getAllCount()).onItem().transform(f -&gt; f != null ? Response.ok(f) : Response.ok(null))
        .onItem().transform(ResponseBuilder::build);
  </code></pre>
  <p>To:</p>
  <pre><code>return Uni.createFrom().item(getAllCount()).onItem().transform(f -&gt; f != null ? Response.ok(f.await().indefinitely()) : Response.ok(null))
        .onItem().transform(ResponseBuilder::build);
  </code></pre>
  <p>than it will work. so if I add &quot;f.await().indefinitely()&quot; it works, my question is will it be still reactive?</p>