Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chentianyuan opened this issue Jun 6, 2022 · 1 comment
Open

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

chentianyuan opened this issue Jun 6, 2022 · 1 comment

Comments

@chentianyuan
Copy link

chentianyuan commented Jun 6, 2022

正常调用赋予权限的接口,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
Copy link

SolidZORO commented Jun 7, 2022

+1 in v1.0.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants