Comments (18)
jsdom 库 强制检查了跨域
// don't send the real request if we aren't allowed to use the headers if (!validCORSPreflightHeaders(xhr, resp, flag, properties)) { setResponseToNetworkError(xhr); return; }
from node-sdk.
是字节租户的同学吗?内部对域名做了限制,看一下这篇云文档:字节自建应用调用飞书服务端OpenAPI改造手册
from node-sdk.
可以提供链接吗?
Java 可以调用,nodejs 调用失败。
from node-sdk.
可以提供链接吗? Java 可以调用,nodejs 调用失败。
飞书私聊下我?mazhe.nerd
from node-sdk.
只能有手机号 与邮箱添加....
from node-sdk.
或则提供二维码,可以吗?
from node-sdk.
只能有手机号 与邮箱添加....
from node-sdk.
麻烦,通过下申请好友请求
from node-sdk.
麻烦,通过下申请好友请求
我这边收不到请求;如果不是字节租户的同学上述方法可能不适用;可以提供一个最小复现化demo我这边排查下嘛?
from node-sdk.
有类似的微信沟通群吗?
from node-sdk.
有类似的微信沟通群吗?
没有;通过github issue机制来解决问题。同学先用最小demo复现一下?
from node-sdk.
只是做了简单的非常
class FeishuProvider {
client: lark.Client;
constructor() {
this.client = new lark.Client({
appId: "cli",
appSecret: "C",
});
}
sendMessage(receive_id: string, msg_type: string, content: string) {
this.client.im.message
.create({
data: {
receive_id: receive_id,
msg_type: msg_type,
content: content,
},
params: {
receive_id_type: "chat_id",
},
})
.then((data) => {
console.log("发送成功");
})
.catch((e) => {
console.log("发送失败");
});
}
}
const data = {
service_name: "kemon-next",
IP: "127.0.0.1",
start_time: new Date().toLocaleString(),
start_up_time: 3,
environment: env.NODE_ENV,
error: error,
status: error != undefined ? "success" : "fail",
};
feishu.sendMessage(
"oc",
"interactive",
JSON.stringify(data),
);
from node-sdk.
OK;sdk的版本是1.23.0吧
from node-sdk.
我这边试了一下是OK的,看上面报错是不是系统开了什么代理,导致open.feishu.cn的请求都挂了;可以试下不用sdk,用axios裸调用一下这个获取token的api看看能不能调通?:https://open.feishu.cn/document/server-docs/authentication-management/access-token/tenant_access_token_internal
from node-sdk.
最新版本 1.23.0...
还是异常
TypeError: Cannot destructure property 'tenant_access_token' of '(intermediate value)' as it is undefined. at TokenManager.<anonymous> (/leaning/work/temp/kemon/.next/server/chunks/eef6e_@larksuiteoapi_node-sdk_es_index_a9f269.js:51011:21) at Generator.next (<anonymous>) at fulfilled (/leaning/work/temp/kemon/.next/server/chunks/eef6e_@larksuiteoapi_node-sdk_es_index_a9f269.js:86:32) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {stack: "TypeError: Cannot destructure property 'tenant_acc…jections (node:internal/process/task_queues:95:5)", message: "Cannot destructure property 'tenant_access_token' of '(intermediate value)' as it is undefined."}
from node-sdk.
请问没有问题。依赖库进行检查,
from node-sdk.
同的哈。
POST https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal
Content-Type: multipart/form-data
{
"app_id": "cli",
"app_secret": "1"
}
返回的结果
{
"code": 0,
"expire": 7200,
"msg": "ok",
"tenant_access_token": "t-g10435b9BNTGEEOLG5EQHDPCHWZAFJ5DMT4VAWWR"
}
from node-sdk.
奇怪,加一下这个开发者互助交流群,艾特一下mazhe.nerd,群里沟通下:
邀请你加入飞书群,快点击https://go.feishu.cn/join-chat/58fr62a3-ae11-478c-b4fe-e2df2aacbdac加入吧!
from node-sdk.
Related Issues (20)
- approval 事件订阅缺失 HOT 3
- Can not upload files HOT 5
- 想问下code-gen是如何自动生成的 HOT 1
- 这个验证请求的代码是不是有问题 HOT 3
- 审批实例状态变更 这个事件可以用EventDispatcher来进行处理吗 HOT 1
- EventDispatcher 收到消息后不分发 HOT 1
- 字节内部也能用吧? HOT 2
- 下载文件能否支持直接导出流? HOT 1
- 多维表格:获取字段类型错误 HOT 3
- bug: 多维表格下的查询记录接口问题 HOT 2
- BUG:多维表格添加记录无法记录字段内容 HOT 1
- 新卡片回传交互结构类型不支持 HOT 2
- 文档错误 HOT 1
- 延时更新消息卡片接口不支持 HOT 1
- yarn.lock 中包含字节内网registry地址 HOT 1
- 请问支持在Cloudflare worker 中使用吗? HOT 1
- drive.file.bitable_record_changed_v1 缺失 HOT 5
- 批量获取用户信息接口中应该如何填写多个userId HOT 4
- please update lodash.pick version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sdk.