Closed ganpanlin closed 1 year ago
Ow dear, this is another side effect of RequestTemplate
been mutable
HardCodedTarget
does change the path
if path
doesn't contain http
on it....
Oddly enough, if you are using a feign client to talk with a ftp://
it will include the url
over, and over, and over again...
the only solution I could think to have a MORE consistent result, would be to expose a new method called relativePath()
and that would return this.uriTemplate.toString()
Lemme know if that would solve your issue, and push a PR for this change
thank you,the value of this.uriTemplate.toString()
is what i need
Looks like you got what you needed. 👍🏻
first time to run, RequestTemplate.path() resturns a value without "target"
it returns like '/api/v4/spot/accounts'
when retry triggered:
it returns like 'https://api.gateio.ws/api/v4/spot/accounts'