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
2
votes
2 answers

How i can define chatset for serialization in Quarkus?

I'm trying send to other system through RESTCLIENT data that is in the ISO-8859-1 encode but i'm have a error: "com.fasterxml.jackson.databind.JsonMappingException: Invalid UTF-8 middle byte 0xe3". I would like change the serialization encode to…
Emerson
  • 428
  • 5
  • 16
2
votes
1 answer

Unable to create instance of JwtClaimsBuilder in Quarkus application

I am currently working on the Quarkus application. I have created an authentication service which will validate user and will create JWT token and send it to the client after successful authentications. But currently, I am facing issue while…
2
votes
1 answer

Debugging RestEasy RestClient

I am using the framework in quarkus to build a rest client for the mandrill API @RegisterRestClient @Path("1.0") @Produces("application/json") @Consumes("application/json") public interface MailService { @POST …
bobby
  • 2,629
  • 5
  • 30
  • 56
2
votes
1 answer

What is the best approach to perform endpoint's unit tests in Quarkus?

I have some doubts regarding the best approach to perform unit tests in Quarkus. One option is using mocks, but I have a feeling that using mocks I just "make happy" the test coverage plugins, but on real I don't test anything with this…
2
votes
2 answers

Quarkus + keycloak - HTTP/1.1 403 Forbidden

I was trying out Quarkus security integration with keycloak Here is my rest endpoints @Path("/jwt") @RequestScoped public class JWTRestController { @Inject @Claim(standard = Claims.preferred_username) Optional
Rahul Wagh
  • 470
  • 1
  • 6
  • 23
1
vote
0 answers

Cannot deserialize from Object value (no delegate- or property-based Creator): this appears to be a native image

I have a Java application developed using the Quarkus framework. It hits the external API using the RestClient which works fine locally, however when I create the containerized native image and deploy it to Kubernetes it gives the below error…
anonymous
  • 173
  • 1
  • 15
1
vote
2 answers

Quarkus - how to use OpenAPI generated API as Quarkus rest client?

I have YAML definition from another project which will generate an ExternalAPI.java for me. I am using OpenAPI plugin of Maven. Now, I also can do @RestClient in Quarkus, defining @RegisterRestClient(configKey="foo") and enable injection; also,…
1
vote
0 answers

0 test cases found and completed when i run ./gradlew test

This is the build.gradle file and its dependencies that I have added to run the test cases. While I try running the ./gradlew test it gives me 0 test cases completed. I have 30 test files in my repo and have also tried adding @QuarkusTest annotation…
1
vote
0 answers

quarkus/opentelemetry - how to propagate traceid through rest call

I have one QuarkusMain app which calls a Quarkus API through RestClient I annotated my run() method with @WithSpan and was able to get a spanId and a traceId in my QuarkusMain app: @Override @WithSpan public int run(String... args) { // my…
godo57
  • 508
  • 2
  • 24
1
vote
1 answer

Failed to initialize Quarkus bootstrap Maven artifact resolver (Quarkus ERROR)

I want create a quarkus project but I have a error. I'm following these steps: 1 - open this website: https://code.quarkus.io/ 2 - I select 2.16.4 version. Build tool: maven - java version: 17 and I added RestEasy Reactive extension. Then Generate…
1
vote
1 answer

Sending multipart/form-data with binary file with Quarkus REST client to Trello (API)

I'm trying to update an old Java software and port it to Quarkus with RESTEASY / Reactive / Microprofile, which adds an image to a card at Trello (Trello doc: Create attachment at card. Please note: The documentation has some lacks and cannot be…
1
vote
0 answers

Quarkus grpc is throwing start up error: Unable to start the gRPC server: java.nio.channels.UnresolvedAddressException

I am trying to start the grpc server with the property quarkus.grpc.server.use-separate-server=true in that case, i am getting the below error during server start up 2023-01-19 13:12:51,762 WARN [io.qua.grp.run.GrpcServerRecorder] (main) Using…
1
vote
0 answers

Quarkus reactive client - sending Multipart from ByteArray

Im trying to use io.quarkus:quarkus-rest-client-reactive-jackson to send a multipart file. Here is my client class @RegisterRestClient(configKey = "foo") interface FooClient { @POST @Path("/upload") fun uploadFile( …
Mark
  • 2,041
  • 2
  • 18
  • 35
1
vote
0 answers

How to enable gzip support when using Quarkus rest client reactive?

I'm using io.quarkus:quarkus-rest-client-reactive:2.10.3.Final to make a request like this: @RegisterRestClient interface QweatherRestClient { @GET @Path(value = "/warning/now") fun getWarningNow( @QueryParam(value = "key") key:…
Xming
  • 11
  • 3
1
vote
1 answer

Quarkus do not find old methods signatures of external libraries

I am developing a Quarkus application, using my own external library (download from maven central, see the code on gitHub). When upgrading from version 0.0.6 to the 0.0.7, I had modified the signature of the method addRolesToGroup and after updating…
1 2
3
12 13