Eos: A ERROR appeared when loading eosio.bios

Created on 13 Jul 2018  ยท  11Comments  ยท  Source: EOSIO/eos

I have no idea what's up with this:

~/eos$ cleos set contract eosio ./build/contracts/eosio.bios -p eosio
Reading WAST/WASM from ./build/contracts/eosio.bios/eosio.bios.wasm...
Using already assembled WASM...
Publishing contract...
1419308ms thread-0 main.cpp:2756 main ] Failed with error: Assert Exception (10)
response_content_length >= 0: Invalid content-length response

Most helpful comment

change the ~/.local/share/eosio/nodeos/config/config.ini http-server-address = 127.0.0.1:8888
to http-server-address = localhost:8888 Solved my problem

All 11 comments

I will appreciate it if this error is resolved

Add http-validate-host = false to your nodeos config.ini. The latest version tightened up host validation considerably. This is good for production nodes, but it does require attention in local testnets.

@jgiszczak follow your guide,but it still have problem:

~/eos/build/programs/cleos$ cleos set contract eosio ../../contracts/eosio.bios -p eosio
Reading WAST/WASM from ../../contracts/eosio.bios/eosio.bios.wasm...
Using already assembled WASM...
Publishing contract...
2272648ms thread-0 main.cpp:2756 main ] Failed with error: Assert Exception (10)

I just got the same error. I cleared all blocks on my nodeos startup just now (--delete-all-blocks), It had published a contract today, recently changed the table definition, but changed back and no help. I also changed the ipaddress and port I listen on, but changed back and didn't help.

Reading WAST/WASM from ./validator.wast...
Assembling WASM...
Publishing contract...
438324ms thread-0 main.cpp:2756 main ] Failed with error: Assert Exception (10)
response_content_length >= 0: Invalid content-length response

rebooted server, with http-server-address = 127.0.0.1:8888 still not working. wallet unlocked as well. From the beginning validation was set to false.

@msj121 follow his guide and have a try again?

@Danilo0120 Oh, I already had that set to false and still had errors. Will update my post.

@msj121 I am searching a way to resolve this error

@Danilo0120 My problem was delete all blocks also deleted accounts. Then I also needed to specify not just my wallet url, but also the nodeos url even after creating accounts:

cleos -u http://127.0.0.1:8899 --wallet-url http://127.0.0.1:8899 set contract ....

A more helpful error like couldn't connect to nodeos would have been supremely helpful, oddly enough that is the error with some other commands

change the ~/.local/share/eosio/nodeos/config/config.ini http-server-address = 127.0.0.1:8888
to http-server-address = localhost:8888 Solved my problem

@jackiesun8 I resolved this issue. thanks

I have another problem when I run cleos set contract eosio build/contracts/eosio.bios -p eosio@active

Using already assembled WASM...
Publishing contract...
Error 3090003: Provided keys, permissions, and delays do not satisfy declared authorizations
Ensure that you have the related private keys inside your wallet and your wallet is unlocked.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

hadramidah picture hadramidah  ยท  3Comments

jiazechen picture jiazechen  ยท  3Comments

bezalel picture bezalel  ยท  3Comments

xiaomaogy picture xiaomaogy  ยท  3Comments

IvanYakimov picture IvanYakimov  ยท  3Comments