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 uses wrong json brackets

I'm new to Quarkus and now writing a small application (quarkus, psql). I wrote two microservices. One for user data and another for points data. User app return data in correct json format { "username": "mishamba", "publicName": "misha", …
Mishamba
  • 29
  • 1
  • 7
0
votes
1 answer

I wan to send exception message from one quarkus service and another quarkus service. How do I do that?

I have two services, If any exception is thrown is one service I should be able to receive that exception is other service which is making the call to that service. In short I want to communicate the exception body from one service to…
0
votes
2 answers

could not resolve all files for configuration ':classpath'. Could not resolve io.quarkus:gradle-application-plugin:2.10.2.Final

I am trying to deploy quarkus application in AWS, I am getting build failed with below error. Can someone help on this? Gradle version I am using is 7.5 Thanks Below is my build.gradle file plugins { id 'java' id 'io.quarkus' } dependencies…
0
votes
0 answers

Rest client closed

I am using Quarkus 2.10.2 and reactive rest clients. One of the rest clients (pas2clabService) is created using the RestClientBuilder and closed after the request in the IntegrationController has finished. @RequestScoped public class…
0
votes
1 answer

DB test entries not showing when called via api

I am trying to test my API in a Quarkus APP. My test setup is I define an object and persist it to the DB with a direct call to the service object. I then call the API and expect to get the object back, but I don't.... My test class setup…
Dan
  • 2,020
  • 5
  • 32
  • 55
0
votes
1 answer

Filters alternatives for Quarkus

I'm currently working on a tech migration for a big client's service and I'm having trouble finding a package other than javax.ws.rs.client for applying filters to my Quarkus service. Is there another library or package for filter creation and…
0
votes
1 answer

Quarkus Rest Client with Client Credentials Access Token

My quarkus backend is calling a rest web service which requires an access token. The access token is generated using client id, client secret and grant type client credentials. The token is valid for a couple of days. This quarkus backend then…
0
votes
1 answer

How to process NonBlocking with Smallrye messaging and reactive http client?

I have the following code. @Incoming("my-topic") void process(String someEvent) { String someResponse = assuminglyRealFastReactiveClientCall(); } The above code throws a blocking thread exception. Which is corrected with…
user432024
  • 4,392
  • 8
  • 49
  • 85
0
votes
0 answers

getEntity() returns null, readEntity(InputStream.class) loads everything to memory

I have problem downloading file (getting the input stream) from server (quarkus implementation) in client (quarkus implementation) I am using 2.9.2.Final version of Quarkus for both client and server, dependency -…
dtechlearn
  • 363
  • 2
  • 4
  • 21
0
votes
1 answer

Quarkus - How to test reactive flow for onFailure()

I have reactive quarkus resource where I am using Mongo Reactive Panache. I have a logic that if the emailId of person exist then code should throw BusinessException. I am able to test the happy path but how do I trigger negative test. Here's my…
Dinesh Arora
  • 2,115
  • 3
  • 24
  • 30
0
votes
2 answers

how to test @ConfigProperty variable of a class

Kindly let me know how we can test below piece of code in junit. ConfigProperty is reading the values from application.property file. now i have to write an unit test case how i can writ kindly help me. @JsonTypeInfo(use = JsonTypeInfo.Id.NAME,…
ajaynmd
  • 9
  • 4
0
votes
1 answer

Quarkus No serializer found class io.smallrye.mutiny.operators.uni.builders.UniCreateFromPublisher no properties discovered to create BeanSerializer

I'm learning Quarkus Reactive with Mongo Panache and when i try to add a Metadata and Pagination object i get the error: "ERROR [io.qu.re.re.ja.ru.ma.NativeInvalidDefinitionExceptionMapper] (executor-thread-0)…
0
votes
0 answers

Quarkus NPE with no args Method

I'am developing a quarkus service, which calls a RestClient-Interface. If I call a RestClient without any args, I get a NullPointer Exception. For example: @GET @Path("/test") @Produces({ "application/json" }) Object getTest(); produces a NPE in…
0
votes
1 answer

How can I receive dynamically number of query params in Rest Client - Quarkus?

I need create a rest client to access a URI that can receive 0 or n query params. Example: https://xpto?page=0&size=10&brand=abc&color=blue or https://xpto?page=0&size=10&brand=abc or https://xpto?page=0&size=10 or https://xpto how could i do this…
J.R
  • 152
  • 1
  • 10
0
votes
1 answer

Is Quarkus rest client parallel connections limited to 256

I have a client to request remote server Multi.createFrom() .items( userInfoList.stream()) .onItem() .transformToUniAndMerge( userInfo -> { System.out.println( personInfo.toString() ); …