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

[BUG]WorkPro:发送本地文件失败(偶尔能成功),报- request_content, column 5, row 4 Error: 12 UNIMPLEMENTED: The server does not implement the method /wechaty.Puppet/MessageSendFileStream #651

Open
Cenzy2001 opened this issue Feb 25, 2025 · 0 comments
Assignees
Labels
workpro Wechaty Puppet Service WorkPro

Comments

@Cenzy2001
Copy link

[BUG]WorkPro:发送本地文件失败(偶尔能成功),报- request_content, column 5, row 4 Error: 12 UNIMPLEMENTED: The server does not implement the method /wechaty.Puppet/MessageSendFileStream

(/wechaty_node/node_modules/@grpc/grpc-js/build/src/call.js:31:19) at Object.onReceiveStatus (/wechaty_node/node_modules/@grpc/grpc-js/build/src/client.js:274:76) at Object.onReceiveStatus (/wechaty_node/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141) at Object.onReceiveStatus (/wechaty_node/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181) at /wechaty_node/node_modules/@grpc/grpc-js/build/src/resolving-call.js:129:78 at process.processTicksAndRejections (node:internal/process/task_queues:77:11) for call at at ServiceClientImpl.makeClientStreamRequest (/wechaty_node/node_modules/@grpc/grpc-js/build/src/client.js:241:32) at ServiceClientImpl.messageSendFileStream (/wechaty_node/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19) at response (file:///wechaty_node/node_modules/wechaty-puppet-service/dist/esm/src/client/puppet-service.js:1335:52) at new Promise () at PuppetService.messageSendFileStream (file:///wechaty_node/node_modules/wechaty-puppet-service/dist/esm/src/client/puppet-service.js:1334:32) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///wechaty_node/node_modules/wechaty/dist/esm/src/sayable/deliver-sayable.js:22:17 at async WechatifiedUserClass.say (file:///wechaty_node/node_modules/wechaty/dist/esm/src/user-modules/room.js:371:21) at async file:///wechaty_node/app/bot_app.ts:274:17 undefined

发文件方式 (文件很小,不到1MB)
const fileBox = FileBox.fromFile(path)
const room_find = await bot.Room.find({ id: room_id })
await room_find?.say(fileBox)

wechaty导入方式
import {
Contact,
Message,
Room,
ScanStatus,
WechatyBuilder,
log,
types
} from 'wechaty'
import { FileBox } from 'file-box'

"dependencies": {
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.6",
"dotenv": "^16.0.0",
"express": "^4.19.2",
"multer": "^1.4.5-lts.1",
"npm-run-all": "^4.1.5",
"qrcode-terminal": "^0.12.0",
"wechaty": "^1.20.2",
"wechaty-cqrs": "^0.7.5",
"wechaty-plugin-contrib": "^1.11.1",
"wechaty-puppet-oicq": "^1.10.2",
"wechaty-puppet-walnut": "^1.11.6",
"wechaty-puppet-wechat": "^1.18.1",
"wechaty-puppet-wechat4u": "~1.11.1",
"wechaty-puppet-whatsapp": "^1.19.16"
},
"devDependencies": {
"@chatie/eslint-config": "^1.0.4",
"@chatie/git-scripts": "^0.6.2",
"@chatie/tsconfig": "^4.6.3",
"@types/express": "^4.17.21",
"@types/qrcode-terminal": "^0.12.2",
"check-node-version": "^4.2.1",
"is-pr": "^2.0.0",
"ts-node": "^10.9.1",
"wechaty-puppet-mock": "^1.18.2"
},

@Cenzy2001 Cenzy2001 added the workpro Wechaty Puppet Service WorkPro label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workpro Wechaty Puppet Service WorkPro
Projects
None yet
Development

No branches or pull requests

3 participants