OpenFeign / OpenFeign/feign

Method `isWithBody()` dont exists

Open
#1,873 3 comments 4 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.