Attendance v1 user_settings/query 接口为 GET + Request Body,但 SDK 调用时报错:method GET must not have a request body
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
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
- 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.
More from larksuite/oapi-sdk-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
larksuite/oapi-sdk-java#196 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
larksuite/oapi-sdk-java#191 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
larksuite/oapi-sdk-java#149 ·
-
接口响应类型错误Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
larksuite/oapi-sdk-java#79 ·
-
什么时候能加入云文档的"修订"功能Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
larksuite/oapi-sdk-java#195 ·
All issues in larksuite/oapi-sdk-java
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oracle/javavscode#652 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenAPITools/openapi-generator#25014 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
AloisSeckar/demos-java#380 ·