Method `isWithBody()` dont exists
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.8k
- Forks
- 1.9k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 41
Description
I just updated feign-okhttp from 11.9.1 to 12.1 and started getting the following error: java.lang.NoSuchMethodError: 'boolean feign.Request$HttpMethod.isWithBody()'. While debugging i noticed that is being used here,so when opening the class OkHttpClient there's an error of the method that couldn't be found.
I'm using spring MVC and the related dependencies are:
id("org.springframework.boot") version "2.7.6"
implementation("org.springframework.cloud:spring-cloud-starter-openfeign")
implementation("io.github.openfeign:feign-okhttp:12.1") {
exclude(module = "okhttp3")
}
implementation("com.squareup.okhttp3:okhttp:4.10.0")
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with okhttp/src/main/java/feign/okhttp/OkHttpClient.java at the reported isWithBody() call, then inspect the runtime feign.Request$HttpMethod version with the listed Spring Boot and feign-okhttp dependencies. Reproduce the NoSuchMethodError and identify a compatible dependency arrangement or a documented upgrade path; done means the application starts without this linkage error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100