Open heli-os opened 3 months ago
issue starts with https://github.com/OpenFeign/feign/pull/2170
Many code snippets are used this way.
RetryableException( response.status(), RATE_LIMIT_EXCEEDED, response.request().httpMethod(), null, // Date type (original) response.request(), )
However, this code will not work with that change.
Overload resolution ambiguity: public constructor RetryableException(p0: Int, p1: String!, p2: Request.HttpMethod!, p3: Date!, p4: Request!) defined in feign.RetryableException public constructor RetryableException(p0: Int, p1: String!, p2: Request.HttpMethod!, p3: Long!, p4: Request!) defined in feign.RetryableException
it's not intuitive, and it creates more confusion.
// first solution RetryableException( response.status(), RATE_LIMIT_EXCEEDED, response.request().httpMethod(), null as Long?, response.request(), )
// second solution val nonRetryable: Long? = null RetryableException( response.status(), RATE_LIMIT_EXCEEDED, response.request().httpMethod(), nonRetryable, response.request(), )
issue starts with https://github.com/OpenFeign/feign/pull/2170
Many code snippets are used this way.
However, this code will not work with that change.
Two solutions to solve this problem
it's not intuitive, and it creates more confusion.
Suggest two things