Skip to content

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

@easysir10

Description

@easysir10

飞书开放平台文档明确指出,批量查询用户人脸识别信息 使用 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.
``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions