title: Error when trying to make a REST Call in Quarkus
body: <p>I'm trying to execute a request at another service that I own.
  The guides I'm using to create the app are:</p>
  <p><a href="https://quarkus.io/guides/rest-client" rel="nofollow noreferrer">QUARKUS - Using the REST Client</a></p>
  <p><a href="https://quarkus.io/guides/cdi-reference" rel="nofollow noreferrer">QUARKUS - CDI Reference</a></p>
  <p><a href="https://quarkus.io/quarkus-workshops/super-heroes/#fault-tolerance-rest-client" rel="nofollow noreferrer">QUARKUS - Workshop</a></p>
  <p>I'm getting an error like:</p>
  <pre class="lang-java prettyprint-override"><code>org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Error injecting com.easy.ecomm.core.product.ProductClient com.easy.ecomm.core.cart.CartService.productClient
  
  org.eclipse.microprofile.rest.client.RestClientDefinitionException: Parameters and variables don't match on interface com.easy.ecomm.core.product.ProductClient::findProductById
  </code></pre>
  <p>Here's the class ProductClient</p>
  <pre class="lang-java prettyprint-override"><code>import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
  
  @Path(&quot;products&quot;)
  @RegisterRestClient(configKey = &quot;products-api&quot;)
  public interface ProductClient {
  
      @GET
      @Path(&quot;{id}&quot;)
      Product findProductById(String id);
  
  }
  
  </code></pre>
  <p>Here's the Service Layer:</p>
  <pre class="lang-java prettyprint-override"><code>import org.eclipse.microprofile.rest.client.inject.RestClient;
  
  import javax.enterprise.context.ApplicationScoped;
  import javax.inject.Inject;
  
  @ApplicationScoped
  public class CartService {
  
      @Inject
      @RestClient
      ProductClient productClient;
  
      public void addItem(String cartId, String productId, Integer amount){
          // Code to find the cart on a queue.
          Product product = findProduct(productId);
          cart.getItems().add(new CartItem(amount, product));
      }
  
      private Product findProduct(String productId) {
          return productClient.findProductById(productId);
      }
  }
  </code></pre>
  <p>and the <code>application.properties</code>:</p>
  <pre class="lang-java prettyprint-override"><code>products-api/mp-rest/url=http://localhost:8060
  products-api/mp-rest/scope=javax.inject.Singleton
  </code></pre>
  <p>The dependencies are the same as we have on the guides <code>quarkus-rest-client</code> and <code>quarkus-rest-client-jackson</code></p>
  <p>Things that I've already tried:</p>
  <p>Remove the ConfigKey from the <code>@RegisterRestClient</code> and use the full path on the <code>application.properties</code>, add the Jandex Plugin on my POM.xml as described <a href="https://stackoverflow.com/questions/55513502/how-to-create-a-jandex-index-in-quarkus-for-classes-in-a-external-module">here</a>.</p>
  <p>But still no success. Each change gives me the same error message.</p>