nodejs版本:v16.17.0
npm版本:8.15.0
运行命令:npm run dev
环境:centos 7
报错信息:
[2022-09-15T14:18:44.574Z] [ERROR] - [WebSocket connection failed attempt: 3]
MTProtoSender.js:194 TypeError: Cannot read properties of undefined (reading 'digest')
at Hash.digest (crypto.js:104:57)
at Object.sha256 (Helpers.js:215:19)
at doAuthentication (Authenticator.ts:80:52)
at async MTProtoSender._connect (MTProtoSender.js:278:25)
at async MTProtoSender.connect (MTProtoSender.js:183:17)
at async TelegramClient.connect (TelegramClient.js:198:31)
at async TelegramClient.start (TelegramClient.js:888:13)
at async init (client.ts:96:7)
at async initApi (provider.ts:42:3)
at async onmessage (worker.ts:23:7)
nodejs版本:v16.17.0 npm版本:8.15.0 运行命令:npm run dev 环境:centos 7
报错信息:
每次连接ws服务后都会报这个错(连接已经建立,好像是在握手时出了问题)。这个是因为nodejs的版本导致的吗?还请大神帮忙看下,谢谢!