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

WebSocket.js:358 else throw new Error('not opened'); #2733

Open
ZhongPengQun2 opened this issue Feb 27, 2024 · 0 comments
Open

WebSocket.js:358 else throw new Error('not opened'); #2733

ZhongPengQun2 opened this issue Feb 27, 2024 · 0 comments

Comments

@ZhongPengQun2
Copy link

ZhongPengQun2 commented Feb 27, 2024

版本号

v1.12.0

什么问题

$ yapi-cli server 不成功

连接数据库成功!
开始下载平台文件压缩包...
https://github.com/YMFE/yapi/archive/v1.10.2.zip
部署文件完成,正在安装依赖库...
 npm
  
 WARN
  
 config
  production Use `--omit=dev` instead.

 npm
  
 WARN
  
 old lockfile
  

 npm
  
 WARN
  
 old lockfile
  The package-lock.json file was created with an old version of npm,

 npm
  
 WARN
  
 old lockfile
  so supplemental metadata must be fetched from the registry.

 npm
  
 WARN
  
 old lockfile
  

 npm
  
 WARN
  
 old lockfile
  This is a one-time fix-up, please be patient...

 npm
  
 WARN
  old lockfile 

 npm
/root/.nvm/versions/node/v20.11.1/lib/node_modules/yapi-cli/node_modules/ws/lib/WebSocket.js:358
      else throw new Error('not opened');
           ^

Error: not opened
    at WebSocket.send (/root/.nvm/versions/node/v20.11.1/lib/node_modules/yapi-cli/node_modules/ws/lib/WebSocket.js:358:18)
    at Socket.<anonymous> (/root/.nvm/versions/node/v20.11.1/lib/node_modules/yapi-cli/src/commands/server.js:66:16)
    at Socket.emit (node:events:530:35)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

Node.js v20.11.1

如何复现此问题

YApi 平台部署 页面选中部署版本 1.12.0, 然后点击 开始部署
在后台将会看到以上的报错

什么浏览器

chrome

什么系统(Linux, Windows, macOS)

Ubuntu 20.04


1709017707

1709017774

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant