代码服务器3.6.0 Webview脚本问题,证书和终端未运行

问题描述

我刚刚在ubuntu 16开发服务器上安装了代码服务器3.6.0,但是在安装扩展程序和运行终端时遇到问题: 当我尝试安装扩展程序时,出现以下错误

Error loading webview: Could not register service workers: SecurityError: Failed to register a ServiceWorker for scope ('https://mysite.xxx:8080/webview/') with script ('https://mysite.xxx:8080/webview/service-worker.js'): An SSL certificate error occurred when fetching the script..

enter image description here

当我通过命令行./bin/code-server运行代码服务器并登录https://mysite.xxx:8080时,出现以下日志错误

enter image description here

我尝试过npm rebuil和npm reinstall,但是问题是一样的 即使终端未运行,它也始终处于启动状态:

enter image description here

我以前使用过代码服务器的2.3版,并且运行正常,没有任何问题,我可以安装扩展程序并运行终端...

有人遇到这个问题吗? 有人解决了吗?

解决方法

我已经完全删除了代码服务器,并下载了最新版本(在撰写本文时为3.6.2)。 从./bin/code-server运行它,从〜/ .config / code-server / config.yml获取配置 而且有效。有时仍然会出现SErviceWorker错误,但至少终端和主要扩展可以正常工作。