larksuite / oapi-sdk-nodejs

DEPRECATED
MIT License
82 stars 9 forks source link

TypeError: Cannot read property 'bodySource' of undefined #27

Open chentianyuan opened 2 years ago

chentianyuan commented 2 years ago

正常调用赋予权限的接口,sdk内部报错

const addPermissionsUri = 'https://open.feishu.cn/open-apis/drive/v1/permissions/:token/members';
const request = larksuite.api.newRequest(addPermissionsUri, 'POST', this.ctx.app.larksuite.Tenant, {
  member_type: 'email',
  member_id: email,
  perm: 'full_access',
});
request.setPathParams({ token });
request.setQueryParams({ type, need_notification: true });
const res = await larksuite.api.sendRequest(this.ctx.app.larksuite.conf, request);
return res;

TypeError: Cannot read property 'bodySource' of undefined at /node_modules/@larksuiteoapi/api/dist/core/handlers/handlers.js:232:42

SolidZORO commented 2 years ago

+1 in v1.0.14