Questions tagged [quarkus-rest-client]

Quarkus MicroProfile REST Client used to interact with REST APIs with little effort.

Quarkus MicroProfile REST Client used to interact with REST APIs with little effort.

Use guide available at https://quarkus.io/guides/rest-client

181 questions
0
votes
1 answer

Quarkus Uni is not working as accepted?

As I am working on QUarkus application I am trying to return Uni but it giving me error: @GET @javax.ws.rs.Path("/notification/typeCount") @Produces({MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN}) public Uni getNoti(){ return…
user3458271
  • 638
  • 12
  • 31
0
votes
1 answer

Quarkus - Understanding error Request failed: java.lang.IllegalStateException: SRMSG00028: The subscription to events has been cancelled

I am using Quarkus to proxy request to another REST service. Everything works fine when the downstream service is running. When I shutdown the downstream and send request, for example a curl request, through Quarkus the first request gets stuck,…
0
votes
2 answers

Rest Client - Can i set connectionPoolSize?

Microprofile allows to define connectionPoolSize from RestClient like this: io.smallrye.restclient.tests.proxy.HelloClient/property/resteasy.connectionPoolSize = 4 When I set this property in my project, quarkus ignores it. How can i define it?
0
votes
0 answers

Quarkus RestClient get response from redirect

I'm using Quarkus Rest Client to perform a GET request to an external API service. This service, however, does not directly return the resource (XML) I need to receive, but it performs a redirect to another API service which returns the…
Riccardo
  • 47
  • 6
0
votes
2 answers

Quarkus RestClient returning empty model (JAVA)

In my application I have 2 projects (services), I want to make an API call from one service to another. So I followed the Quarkus tutorial for Quarkus Restclient. But when I make the call the restclient returns a default model. This is my Response…
0
votes
1 answer

QUARKUS - MicroProfile REST Client: add a custom, not mapped field

I am following this article https://quarkus.io/guides/rest-client to build a REST Client to parse the output from the restcountries.eu service. Here the class holding the model: public class Country { public String name; public String…
user3727540
  • 922
  • 3
  • 11
  • 30
0
votes
1 answer

Mutiny: recover from a single uni timeout

From a quarkus (kotlin) appli, I request multiple endpoints (same endpoint but with different base URL) in parallel, then I combine the uni in order to not wait sequentially for each response. Here is a sample: val unis =…
0
votes
0 answers

Quarkus PUT body param: error while deserializing subtype inside the supertype object

In Quarkus, I expose a PUT method that allows to modify an Animal, which can be a Dog or a Cat Here is the method signature I want to have: @PUT @Path("{id}") public Response updateAnimal(@PathParam Long id, Animal animal) {} I want the frontend to…
0
votes
1 answer

How to send a file from Quarkus to a Spring Boot application?

I'm writing a Quarkus microservice that is meant to communicate with a main Spring Boot application. In order to make calls to the Spring Boot app, I wrote a REST client based on this Quarkus tutorial and it's working fine for some endpoints. The…
0
votes
1 answer

Accessing a RestClient from quarkus graphQL gives RESTEASY004655: Unable to invoke request: javax.net.ssl.SSLHandshakeException error

I have a quarkus-graphql, quarkus-restservice and a openliberty restservice running in openshift in different namespaces. Quarkus-graphql is accessing the restservices using RestClient. In all the applications tls.key and tls.crt are created by the…
funtoos
  • 295
  • 1
  • 4
  • 17
0
votes
1 answer

Injection of bean inside ClientHeadersFactory doesn't work

I'm building a Quarkus app which handles http requests with resteasy and calls another api with restclient and I need to propagate a header and add another one on the fly so I added a class that implements ClientHeadersFactory. Here's the…
Fab
  • 135
  • 9
0
votes
1 answer

How can I implement angularjs in quarkus restAPI

Built my first restful application using quarkus. I want to have a frontend which can call these restful services. any pointers.
Mowgli
  • 73
  • 2
  • 10
0
votes
1 answer

Dependency injection does not work in RestClientBuilderListener

I followed the rest client guide in Quarkus web site. It works fine. But when registering a global provider using the ServiceLoader pattern, as described in the specification, the CDI beans injection did not work, they are all null. I downloaded the…
AmsterdamLuis
  • 341
  • 3
  • 21
0
votes
2 answers

How to authenticate MicroProfile REST Client calls with OAuth?

In my server application, I want to consume some third party API using a MicroProfile REST client. To do so, I need to send an Authorization Header with a bearer token. I don't want to always get a token before I make any call so I need a mechanism…
xxtesaxx
  • 6,175
  • 2
  • 31
  • 50
-1
votes
1 answer

Quarkus kotlin and reactive hibernate with panache No current Mutiny.Session found error with suspend function only

Making the findByStatusAndTypeAndLanguage function below a suspend function causes "java.lang.IllegalStateException: No current Mutiny.Session found" error, but the function above it is suspend with no errors. Removing the suspend from the…
1 2 3
12
13