FranzKafkaYu / x-ui

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.
GNU General Public License v3.0
7.85k stars 1.57k forks source link

获取版本失败: json: cannot unmarshal object into Go value of type []service.Release #366

Closed xuelide closed 1 year ago

xuelide commented 1 year ago

Welcome

Description of the problem,screencshot would be good

image 全新用脚本安装的0.3.4.2:20230409,点击切换内核或者内核版本就提示错误。

Version of x-ui

```console $ x-ui version # Paste output here ``` 0.3.4.2:20230409

x-ui log or xray log

```console # paste log here ``` Apr 26 00:53:40 instance-20220907-1458 x-ui[1183878]: 2023/04/26 00:53:40 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 00:53:46 instance-20220907-1458 x-ui[1183878]: 2023/04/26 00:53:46 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 00:55:42 instance-20220907-1458 x-ui[1183878]: 2023/04/26 00:55:42 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 00:56:59 instance-20220907-1458 x-ui[1183878]: 2023/04/26 00:56:59 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 00:57:03 instance-20220907-1458 x-ui[1183878]: 2023/04/26 00:57:03 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 00:57:07 instance-20220907-1458 x-ui[1183878]: 2023/04/26 00:57:07 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 00:57:10 instance-20220907-1458 x-ui[1183878]: 2023/04/26 00:57:10 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 00:58:05 instance-20220907-1458 x-ui[1183878]: 2023/04/26 00:58:05 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 01:00:07 instance-20220907-1458 x-ui[1183878]: 2023/04/26 01:00:07 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 01:01:00 instance-20220907-1458 x-ui[1183878]: 2023/04/26 01:01:00 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 01:02:47 instance-20220907-1458 x-ui[1183878]: 2023/04/26 01:02:47 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 01:03:35 instance-20220907-1458 x-ui[1183878]: 2023/04/26 01:03:35 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 01:03:54 instance-20220907-1458 x-ui[1183878]: 2023/04/26 01:03:54 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release Apr 26 01:03:55 instance-20220907-1458 x-ui[1183878]: 2023/04/26 01:03:55 WARNING - 获取版本失败: json: cannot unmarshal object into Go value of type []service.Release
fireinrain commented 1 year ago

看看js接口请求的数据 和 返回失败的响应

dragonwebs commented 1 year ago

centos 7存在这个问题,centos 8没有。