Questions tagged [openfeign]
237 questions
2
votes
1 answer
Spring Cloud OpenFeign - Activate circuit breaker
According to the documentation, for activating the cricuit breaker I have to add feign.circuitbreaker.enabled=true in the properties.
It's working but I'd like to find a way of activating with an annotation.
I tried something like
…

tweetysat
- 2,187
- 14
- 38
- 75
2
votes
0 answers
Spring Boot Feign client - interceptor not working
I have feign client interceptor which adds Auth header (bearer token being fetched by RestTemplate). If the server responds with 401 (expired token) I want to reauthenticate and try the request again but the interceptor is not getting triggered 2nd…

Aleksa
- 98
- 9
2
votes
0 answers
How can remove or reset OkHttp3 connection from pool
My project use spring-cloud-starter-openfeign.(version 2.1.0)
open feign is using feign-okhttp as http client and I know it uses ok-http3 internally.
I want the OkHttp3 connection to be reset or delete from connection-pool when http request gets a…

developer-OK
- 21
- 2
2
votes
2 answers
SpringCloud OpenFeign: consume response with content type text/html
I'm using SpringCloud openfeign to call another micro service that isn't owned by our team.
When I define this feignclient.
@FeignClient(name="test, url="/test")
public interface MyFeignClient {
@GetMapping("/hello)
MyCustomRespone…

Liem
- 446
- 1
- 6
- 20
2
votes
2 answers
Open Feignclient integration with Netflix Ribbon not working in springboot
FeingClient Server
@RestController
public class FeinApiCall {
@Autowired
CustomFeignClient customFeignClient;
@GetMapping("/getinfothroughfeign")
public String getFeignLoad() {
String result…

Tarun Singh
- 97
- 2
- 10
2
votes
3 answers
How to extract a single JSON property in Spring Boot Application?
I am feeling kind of lost since I already struggled with some dependencies in my pom.xml, but what I am trying to do is to extract a single property from a JSON in my Spring Boot Application.
I have a FilmServiceClient, declared as FeignClient which…

Nicolorino
- 41
- 1
- 5
2
votes
1 answer
How to set connection-timeout and socket-timeout with feign +http client?
@Bean
public ApacheHttpClient client() {
RequestConfig config = RequestConfig.custom().setConnectTimeout(30)
.setSocketTimeout(30).build();
CloseableHttpClient httpClientObject = HttpClientBuilder.create()
…

Reema Joshi
- 133
- 2
- 9
2
votes
0 answers
Spring Boot Rest Api - Multiple @RequestPart not working with Feign client
I have a Spring Boot 2.4.3 with
@RestController
public class DemoFeignController {
@PutMapping(value = "/document", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public String upload(@RequestPart("file") MultipartFile multipartFile,
…

tweetysat
- 2,187
- 14
- 38
- 75
2
votes
0 answers
OpenFeign ClassNotFoundException
I'm trying to use OpenFegin in my application but when I run the SpringBoot application, I get the following Exception.
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in…

Milindu Sanoj Kumarage
- 2,714
- 2
- 31
- 54
2
votes
1 answer
Alternative For OAuth2FeignRequestInterceptor as it is deprecated NOW
In my previous implementation I was using OAuth2FeignRequestInterceptor. But from Spring security 5 onwards, OAuth2FeignRequestInterceptor seems to be deprecated. What is the alternative to achieve the same ?. I searched lot of blogs and threads,…

Ronit Mishra
- 105
- 11
2
votes
1 answer
Get Instance of circuit breaker from configuration file
This is my configuration file.
resilience4j.circuitbreaker:
instances:
backendB:
registerHealthIndicator: true
slidingWindowSize: 10
minimumNumberOfCalls: 10
permittedNumberOfCallsInHalfOpenState: 3
…

Santosh Subedi
- 71
- 6
2
votes
1 answer
Format Date with OpenFeign
My Feign client is defined as follow :
@FeignClient(name = "${feign.name}",url = "${feign.url}",
configuration = {DateFormatConfiguration.class})
public interface MyFeignClient {
@GetMapping(value = "/test")
ResponseEntity…

Mohamed Taboubi
- 6,663
- 11
- 55
- 87
2
votes
0 answers
Getting 400 Bad Request for Feign Client
I have had some trouble while using open-feign
I'm using: Hoxton.RELEASE with Spring-boot version 2.2.1.RELEASE
Caused by: feign.FeignException: status 400 reading Service#method(List,String); content:
at…

I'm_Pratik
- 541
- 8
- 22
2
votes
0 answers
OpenAPI Generator : generate correct method profile for downloading binary file
I have a Swagger file (OAS 2) with an endpoint used to download a file. I'm using openapi-generator (through the Maven plugin) to generate Java / OpenFeign client code.
The problem is that this particular endpoint translates to:
@RequestLine("GET…

Olivier Gérardin
- 1,113
- 14
- 27
2
votes
2 answers
How to deal with "feign.FeignException: [301 Moved Permanently] during [GET]"?
i'm trying to do a request with FeignClient in my Spring-Boot app to https://pixabay.com/api?key=17079440-d2facf535011df5d60e5ccfe2&q=Playstation%203&image_type=photo but but this exception has been throw:
2020-06-17 21:10:24.730 ERROR 14008 ---…

Rodrigo Lima
- 29
- 1
- 3