holochain / holochain-rust

DEPRECATED. The Holochain framework implemented in rust with a redux style internal state-model.
GNU General Public License v3.0
1.12k stars 267 forks source link

`Failed to validate agent ID on a zome` with `hc run` #1660

Open nmrshll opened 5 years ago

nmrshll commented 5 years ago

On the default zome generated by hc 0.0.26-alpha1, when run with hc run, I get the following error:

2019-08-14 16:53:25 ThreadId(3):test-instance: err/net/dht: Failed to validate agent ID on a zome, [Error(ErrorGeneric("I/O Error: UnexpectedEof"))]

I noticed the same error with my previous holochain config after upgrading to 0.0.26-alpha1.

What is it related to and how can I fix that ?

Thanks in advance

freesig commented 5 years ago

I'm also getting this on v0.0.30-alpha6.

WARN 2019-09-25 14:16:06 [holochain::Alice] store_entry_content/puid-2-3 core/src/workflows/hold_entry.rs:82 workflow/hold_entry: Entry HcScJtQkeJ4hkdqtxrdgh8jPybRynkaxmCSFZxKG6Nsf3tei6zRAnEdy97Qzeua is NOT valid! Validation error: Error(ErrorGeneric("Failed to validate agent ID on a zome, [Error(ErrorGeneric(\"I/O Error: UnexpectedEof\"))]"))
ERROR 2019-09-25 14:16:06 [holochain::Alice] store_entry_content/puid-2-3 core/src/network/handler/store.rs:35 net/dht: Failed to validate agent ID on a zome, [Error(ErrorGeneric("I/O Error: UnexpectedEof"))]

This happens on hc run and holochain -c conductor-config.toml.

This is my validate_agent function:

    #[validate_agent]
    pub fn validate_agent(validation_data: EntryValidationData<AgentId>) {
        Ok(())
    }

Also showing up on the forum. https://forum.holochain.org/t/error-failed-to-validate-agent-id-on-a-zome-since-hdk-0-0-25/999/5