首页 > 解决方案 > EOSIO - cleos 钱包创建命令抛出错误“无效的内容长度响应”

问题描述

根据EOSIO Docs,我运行cleos wallet create命令来创建我的第一个default钱包。但是它会引发以下错误。

3401237ms thread-0 main.cpp:2756 main ] Failed with error: Assert Exception (10) response_content_length >= 0: Invalid content-length response

标签: eos

解决方案


在经历了几个 github问题后,我发现以下更改config.ini将修复此错误。

Config File Location: /tmp/eosio/config, 和 File: config.ini,属性http-validate-host1(true)改为0(false),如下图:

http-validate-host=0


推荐阅读