Questions tagged [openfeign]

237 questions
0
votes
0 answers

Auditing Rest API Client Calls to External Endpoint

I am working on developing a spring boot app that basically consumes "messages" and POST converted JSON to different customers external REST Endpoint. At this point using Feign Client to do so. There is requirement to "Audit" external calls for…
Arpit S
  • 137
  • 2
  • 10
0
votes
1 answer

Implement Feign Client with Okta as Authorization Server

I was finally able to protect a rest api with Okta as OAuth2.0 security provider (basic with defaults). Also able to get the bearer token using curl, to call rest api via postman and get back results. curl --location --request POST…
Arpit S
  • 137
  • 2
  • 10
0
votes
1 answer

Spring suggests to go ahead with Webclient instead of Rest Template (as eventually it will get deprecated), how would it affect Open Feign?

With rest template eventually set for deprecation and Spring suggesting to use Webclient instead of rest template. How will it affect Open Feign, will it also get deprecated?
0
votes
0 answers

FeignClient proxy time out

I am trying to access an external API from spring boots using the OpenFeign with OkHttpClient as the client. @FeignClient(name = "CamptClient", configuration = {FeignConfigurationProxy.class}, url = CAMPTFileConstants.EXTERNAL_BASE_URL) public…
0
votes
0 answers

nested exception is feign.codec.DecodeException:Could not extract response: no suitable HttpMessageConverter found for response type [application/xml]

I'm learning to work with feign. When the requests were in the "json" format, all the responses came fine, but when I needed to get a response in the "xml" format, it gives this error. How can I solve it? @GetMapping("/link") CorporateItemsDto…
0
votes
0 answers

Feign client space in url

I use Feign client to call 3rd party rest services. The url looks like: https://dev.azure.com/{organization}/{project} Since we changed our project name to a string which contains spaces, I'm getting http 400 Bad Request as…
Robert S.
  • 13
  • 2
0
votes
0 answers

How to download a large file in a Spring Boot microservices application?

I am trying to download a large file in a Spring Boot microservices application. Can anyone suggest a way of doing that? Here is my front-end code AJAX controller…
0
votes
0 answers

org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the parameter name

I'm trying to send a request from one service to another using FeignClient but I'm facing this error : org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the parameter name "{ "cpaymentId" : 4, …
Abd Abughazaleh
  • 4,615
  • 3
  • 44
  • 53
0
votes
1 answer

stream is closed and Could not find acceptable representation error

i'm consuming a Api witch is returning pdf as ResponseEntity but it is not working at my api i'm trying to get de file coming from the external api and provide it at my endpoint. # External Api FeignClient class @FeignClient(value =…
0
votes
1 answer

OpenFeign not decoding response

@FeignClient(name = "Authorization-API", url = "https://www.reddit.com/api/v1") public interface AuthorizationApi { @RequestMapping(method = RequestMethod.POST, value = "/access_token") Token getToken(@PathVariable("grant_type") String…
dev-rifaii
  • 217
  • 2
  • 9
0
votes
1 answer

OpenFeign decode CompletableFuture

I want to use an async feign client (io.github.openfei and not spring-cloud-starter-openfeign) to call my REST Api. Here is my code: interface FeignClient { @RequestLine("GET /") CompletableFuture hello(); } FeignClient…
Shakesbeer
  • 71
  • 6
0
votes
2 answers

FeignClient error: url values must be not be absolute

I have an error when starting SpringBootApplication: Unexpected exception during bean creation; nested exception is java.lang.IllegalArgumentException: url values must be not be absolute. I'm a beginner is SpringCloud, but I worked with Openshift…
0
votes
0 answers

Open Feign different Decoders at method level

I am using open-feign. In one feign client let's say I have defined 10 methods. Is there any way to specify different decoders for each method. method1 -> Strem decoder method2 -> String decoder
user3309305
  • 181
  • 1
  • 7
0
votes
1 answer

No qualifying bean of type 'feign.Client' available being thrown in the background

There is an exception being thrown in the background of my application. The error is not logged but it's caught by a third-party tool called Dynatrace, due to this tool we were able to see the exception below. We are using Java 11 and the…
EduwHS
  • 13
  • 4
0
votes
1 answer

Spring OpenFeign getting FeignException while I set followRedirect as false

I recently found that I can set the follow redirects as folase so that I can get to Location in the 302 response. But It goes to the fallBackFactory with exception feign.FeignException: [302 Found]. I read from another blog that if you want to…