larksuite / larksuite/oapi-sdk-java

【审批】获取三方审批任务状态接口报错:java.lang.IllegalArgumentException: method GET must not have a request body.

Open
#164 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
310
Forks
115
PR merge metrics
No merged PRs in 30d

Description

在调用接口 获取三方审批任务状态 时,报错:java.lang.IllegalArgumentException: method GET must not have a request body.

接口地址:https://open.feishu.cn/document/server-docs/approval-v4/external_task/list
按接口文档说明,接口请求 Method 为 Get,并且需要有请求体Body,在使用Postman工具调试时,是可以正常调用。

接口报错原因:SDK限制了Get请求不允许带有Body。

Contributor guide

No contributing guide indexed for this repository

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 by tracing the Java SDK request path used for the external approval task status endpoint, https://open.feishu.cn/document/server-docs/approval-v4/external_task/list, and reproduce the request with the documented GET method and body. Done means the SDK can call this endpoint with its required request body without raising the reported IllegalArgumentException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.