Skip to content
New issue

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

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

Already on GitHub? # to your account

钉钉登录认证失败:不合法的access_token #240

Open
gyf9835 opened this issue Feb 25, 2024 · 0 comments
Open

钉钉登录认证失败:不合法的access_token #240

gyf9835 opened this issue Feb 25, 2024 · 0 comments

Comments

@gyf9835
Copy link

gyf9835 commented Feb 25, 2024

adapter-dingtalk 版本:2.3.0

2024-02-25 23:36:51 [I] loader apply plugin adapter-dingtalk:tqhwca
2024-02-25 23:36:51 [W] dingtalk Error: [400] {"code":"InvalidAuthentication","requestid":"30EE8654-1AA2-7D88-8248-9518547248AA","message":"不合法的access_token"}
                            at _Internal.<computed> [as listAllInnerApps] (/koishi/node_modules/@satorijs/adapter-dingtalk/lib/index.js:365:21)
                            at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                            at async DingtalkBot.getLogin (/koishi/node_modules/@satorijs/adapter-dingtalk/lib/index.js:399:27)
                            at async WsClient.prepare (/koishi/node_modules/@satorijs/adapter-dingtalk/lib/index.js:278:5)
                            at async reconnect (/koishi/node_modules/@satorijs/core/lib/index.cjs:434:24)
2024-02-25 23:36:52 [E] dingtalk getLogin failed: { data: { errcode: 40014, errmsg: '不合法的access_token' }, url: 'https://oapi.dingtalk.com/microapp/list?access_token=undefined', status: 200, statusText: 'OK', headers: HeadersList { cookies: null, [Symbol(headers map)]: Map(7) { 'server' => { name: 'Server', value: 'DingTalk/1.0.0' }, 'date' => { name: 'Date', value: 'Sun, 25 Feb 2024 15:36:52 GMT' }, 'content-type' => { name: 'Content-Type', value: 'application/json' }, 'transfer-encoding' => { name: 'Transfer-Encoding', value: 'chunked' }, 'connection' => { name: 'Connection', value: 'keep-alive' }, 'cache-control' => { name: 'Cache-Control', value: 'no-cache' }, 'content-encoding' => { name: 'Content-Encoding', value: 'gzip' } }, [Symbol(headers map sorted)]: null } }
2024-02-25 23:36:52 [W] app TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "x-acs-dingtalk-access-token"
                            at ClientRequest.setHeader (node:_http_outgoing:655:3)
                            at new ClientRequest (node:_http_client:286:14)
                            at request (node:https:378:10)
                            at initAsClient (/koishi/node_modules/undios/node_modules/ws/lib/websocket.js:867:28)
                            at new WebSocket (/koishi/node_modules/undios/node_modules/ws/lib/websocket.js:85:7)
                            at Proxy.ws (/koishi/node_modules/undios/lib/index.cjs:247:20)
                            at WsClient.prepare (/koishi/node_modules/@satorijs/adapter-dingtalk/lib/index.js:289:26)
                            at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                            at async reconnect (/koishi/node_modules/@satorijs/core/lib/index.cjs:434:24)
2024-02-25 23:38:33 [W] app RangeError: Maximum call stack size exceeded
                            at Object.get (/koishi/node_modules/@cordisjs/core/lib/index.cjs:862:44)
                            at Reflect.get (<anonymous>)
                            at Object.get (/koishi/node_modules/@cordisjs/core/lib/index.cjs:863:26)
                            at Reflect.get (<anonymous>)
                            at Object.get (/koishi/node_modules/@cordisjs/core/lib/index.cjs:863:26)
                            at Reflect.get (<anonymous>)
                            at Object.get (/koishi/node_modules/@cordisjs/core/lib/index.cjs:863:26)
                            at Reflect.get (<anonymous>)
                            at Object.get (/koishi/node_modules/@cordisjs/core/lib/index.cjs:863:26)
                            at Reflect.get (<anonymous>)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant