management-web本地环境运行,上传智能合约提示请重新登录
【问题分类】
- bug
- P2P网络相关(包含libp2p,liquid)
- 链账户身份与权限相关(证书问题、public、多签投票问题)
- 核心交易引擎相关(交易池、DAG)
- 共识相关
- 智能合约相关
- 存储相关
- SDK相关
- 长安链CMC工具
- 长安链管理台
- 长安链浏览器
- 长安链合约IDE
- 长安链web签名插件
- 跨链相关
- 轻节点相关
- 隐私计算相关
- 密码学相关
- 环境依赖
- 其他补充:
【问题描述】(请对问题进行描述,方便定位问题)
具体的现象,操作步骤,前置条件等,尽可能描述清楚,有截图说明更佳
1.检出管控台前后端的代码; 2.修改后端配置数据库的相关配置,数据库用的本地数据库mysql; 3.修改前端调用后端的接口地址:BASE_URL = 'http://localhost:9999'; 4.启动后端代码&启动前端代码; 5.登录管控台,配置证书,新建区块链,下载配置启动链; 6.通过智能合约管理上传合约,提示:上传合约文件格式不正确,右上角显示登录失败,请重新登录;
后端日志: [GIN] 2022/07/11 - 19:03:27 | 200 | 37.9185ms | ::1 | POST "/chainmaker?cmb=GeneralData" 2022-07-11 19:03:28.797 [INFO] [WEB] ctrl/dispatcher.go:137 Receive http request[/chainmaker?cmb=GetRuntimeTypeList] 2022-07-11 19:03:28.798 [INFO] [WEB] ctrl/dispatcher.go:137 Receive http request[/chainmaker?cmb=GetContractManageList] [GIN] 2022/07/11 - 19:03:28 | 200 | 2.3191ms | ::1 | POST "/chainmaker?cmb=GetRuntimeTypeList"
(/mnt/d/Workspaces/Go/src/chainmaker.org/management-backend/src/db/contract/contract.go:67)
[2022-07-11 19:03:28] [2.68ms] SELECT * FROM cmb_contract
WHERE (chain_id = 'chain1') ORDER BY id DESC LIMIT 20 OFFSET 0
[0 rows affected or returned ]
(/mnt/d/Workspaces/Go/src/chainmaker.org/management-backend/src/db/contract/contract.go:72)
[2022-07-11 19:03:28] [1.77ms] SELECT count(*) FROM cmb_contract
WHERE (chain_id = 'chain1')
[0 rows affected or returned ]
[GIN] 2022/07/11 - 19:03:28 | 200 | 13.4335ms | ::1 | POST "/chainmaker?cmb=GetContractManageList"
2022-07-11 19:03:33.842 [INFO] [WEB] ctrl/dispatcher.go:137 Receive http request[/chainmaker?cmb=UploadFile]
2022-07-11 19:03:33.849 [ERROR] [WEB] ctrl/dispatcher.go:158 Http request[/chainmaker?cmb=UploadFile]'s error = [ErrorTokenExpired - token 已过期]
[GIN] 2022/07/11 - 19:03:33 | 200 | 8.3333ms | ::1 | POST "/chainmaker?cmb=UploadFile"
2022-07-11 19:03:40.091 [INFO] [WEB] ctrl/dispatcher.go:137 Receive http request[/chainmaker?cmb=GetCaptcha]
[GIN] 2022/07/11 - 19:03:40 | 200 | 70.2209ms | ::1 | POST "/chainmaker?cmb=GetCaptcha"
【系统信息】(请填写系统信息,方便定位问题)
- chainmaker-go version * : [v2.2.0]
- OS & version * : Windows10 ,WSL2(ubuntu1804)
- docker镜像 version: 未使用
-
管理台 version:
- management-backend的版本v2.2.0,management-web的版本v2.2.0