oapi-sdk-nodejs
oapi-sdk-nodejs copied to clipboard
TypeError: Cannot read property 'bodySource' of undefined
正常调用赋予权限的接口,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
+1 in v1.0.14