Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Attendance v1 user_settings/query 接口为 GET + Request Body,但 SDK 调用时报错:method GET must not have a request body

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

Nobody has claimed this yet.

Assessment

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

Research direction

Start with the Attendance v1 userSetting().query entry point and the QueryUserSettingReq construction shown in the report. Inspect how the Java SDK builds the GET request with queryUserSettingReqBody, then reproduce the call and verify the request no longer fails with “method GET must not have a request body.”

Written by the indexing model from the issue text.

Description

飞书开放平台文档明确指出,批量查询用户人脸识别信息 使用 HTTP GET 方法,并要求在请求体(Request Body)中传入 JSON 参数user_ids。

然而,在使用 Java SDK 调用该接口时:

QueryUserSettingReq req = QueryUserSettingReq.newBuilder()
    .employeeType(QueryUserSettingQueryUserSettingEmployeeTypeEnum.EMPLOYEENO)
    .queryUserSettingReqBody(QueryUserSettingReqBody.newBuilder().userIds(userIds).build())
    .build();

larkClient.attendance().v1().userSetting().query(req);

抛出异常:

java.lang.IllegalArgumentException: method GET must not have a request body.
``
Dominant language
Java
Stars
310
Forks
115
PR merge metrics
No merged PRs in 30d

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

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.

More from larksuite/oapi-sdk-java

All issues in larksuite/oapi-sdk-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.