1

错误:[FabricCAClientService.js]:无法注册管理员,错误:%o 消息=无法解析注册响应 [客户端向 HTTPS 服务器发送了 HTTP 请求。] 由于错误 [SyntaxError: 位置 0 的 JSON 中的意外令牌 C],堆栈 = 错误:无法解析注册响应 [客户端向 HTTPS 服务器发送了 HTTP 请求。] 由于错误 [SyntaxError: Unexpected token C in JSON at position 0] at IncomingMessage.response.on (F:\SE\3rd_Year\FYP\Blockchain\hyperledger-template\hyperledger-caliper\node_modules\fabric-client\ node_modules\fabric-ca-client\lib\FabricCAClient.js:475:21) 在 IncomingMessage.emit (events.js:203:15) 在 endReadableNT (_stream_readable.js:1145:12) 在 process._tickCallback (internal/process /next_tick.js:63:19) 2020.06.06-23:24:43。152 错误 [caliper] [caliper-engine] 执行“init”步骤时出错:错误:无法注册患者的注册器或将其设置为用户上下文:无法解析注册响应 [客户端向 HTTPS 服务器发送了 HTTP 请求。] 由于错误 [SyntaxError: Unexpected token C in JSON at position 0] 2020.06.06-23:24:43.153 info [caliper] [caliper-engine] 在 0.527 秒内执行“init”步骤 2020.06.06-23: 24:43.153 info [caliper] [caliper-engine] 网络配置属性“caliper.command.end”不存在,跳过结束命令 2020.06.06-23:24:43.154 错误 [caliper] [cli-launch-master] 基准失败,错误代码 4 无法解析注册响应 [客户端向 HTTPS 服务器发送了 HTTP 请求。] 由于错误 [SyntaxError: Unexpected token C in JSON at position 0] 2020.06.06-23:24:43.153 info [caliper] [caliper-engine] 在 0.527 秒内执行“init”步骤 2020.06.06-23: 24:43.153 info [caliper] [caliper-engine] 网络配置属性“caliper.command.end”不存在,跳过结束命令 2020.06.06-23:24:43.154 错误 [caliper] [cli-launch-master] 基准失败,错误代码 4 无法解析注册响应 [客户端向 HTTPS 服务器发送了 HTTP 请求。] 由于错误 [SyntaxError: Unexpected token C in JSON at position 0] 2020.06.06-23:24:43.153 info [caliper] [caliper-engine] 在 0.527 秒内执行“init”步骤 2020.06.06-23: 24:43.153 info [caliper] [caliper-engine] 网络配置属性“caliper.command.end”不存在,跳过结束命令 2020.06.06-23:24:43.154 错误 [caliper] [cli-launch-master] 基准失败,错误代码 4

这是 bash 的输出。我不知道是什么原因造成的。我的网络有 3 个组织,每个组织有 2 个同行和一个订购者。我已经编辑了 fabic-node.yaml 文件以符合要求。如果有人对我该怎么做有任何建议。谢谢

4

1 回答 1

2

基本上,错误代码 4 是您尝试初始化与区块链(SUT)的连接但失败,错误代码 5 是您无法安装智能合约,错误代码 6 是其他错误(例如配置)

于 2020-08-02T16:57:42.743 回答