You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feign.RetryableException: foobar executing POST http://foobar/inputURI/gateway/testWithURI
sendMessageToGatewayString :
feign.RetryableException: Connection refused (Connection refused) executing POST http://localhost/gateway/testWithString
Question
As you can see from the above, the sendMessageToGatewayString works as expected, however sendMessageToGateUri takes the input URI and prepends it to the path of the method ( Essentially making it the baseURL and adding RequestLine path to it ) - Is this expected behaviour ?
Side Note:
Version Used : 'org.springframework.cloud:spring-cloud-openfeign-core:2.1.1.RELEASE'
I understand to use Spring Boot Feign annotations, however I have certain use cases such as HeaderMap and ParamMap which I wasn't able to properly decipher in Spring Boot Feign.
Making feign annotations work by using the underlying codeblock :
Yes, this is expected. If the first parameter in a method signature is a URI it will be used as the base URI for the request. I've looked back over the documentation and history and it appears that this feature has been present from the beginning and is missing from the current README. We should update the documentation accordingly.
When using a URI object as a param in a FeignClient - the URI object replaces the base url instead of correctly doing param expansion.
Example :
Test Case :
Relevant Output / Logs :
sendMessageToGatewayUri :
sendMessageToGatewayString :
Question
As you can see from the above, the sendMessageToGatewayString works as expected, however sendMessageToGateUri takes the input URI and prepends it to the path of the method ( Essentially making it the baseURL and adding RequestLine path to it ) - Is this expected behaviour ?
Side Note:
Version Used : 'org.springframework.cloud:spring-cloud-openfeign-core:2.1.1.RELEASE'
I understand to use Spring Boot Feign annotations, however I have certain use cases such as HeaderMap and ParamMap which I wasn't able to properly decipher in Spring Boot Feign.
Making feign annotations work by using the underlying codeblock :
The text was updated successfully, but these errors were encountered: