I’m at a complete loss as to what’s going wrong here, every time my code reaches a create_entry
call, it crashes out with a CallError("RuntimeError: unknown error")
!
Here is my code:
use hdk3::prelude::*;
#[hdk_extern]
fn init(_: ()) -> ExternResult<InitCallbackResult> {
Ok(InitCallbackResult::Pass)
}
#[hdk_entry(id="strtest")]
struct StrTest(String);
#[hdk_extern]
fn test(input: String) -> ExternResult<HoloHash<holo_hash::hash_type::Header>> {
create_entry(StrTest(input))
}
I have tried with at least 3 revisions of Holochain now (running nix-shell --argstr flavor happDev
in a local repository, I don’t know which others I ran but I just tried 5050f6c9
) and I can’t run a single thing!
I couldn’t find any other (working) way of interacting with the conductor than through the Node API and none of the versions of Holochain I’ve tried (including the revisions mentioned on the develop
and register-dna
branches of the Node API) have been able to commit a single entry!
I’ve confirmed that the code is running (I have been able to use the debug!
macro), but whenever it reaches a create_entry
call it crashes out. Sometimes the conductor begins spamming the logs with errors every 200 milliseconds afterwards:
holochain::conductor::conductor: error dispatching network event error=ConductorError(CellMissing(CellId(DnaHash(uhC0kNbHakNWH5yW4cttlpBxQD_cuRUNrucSuWSFLXifeMfgCWTHP), AgentPubKey(uhCAkGYpwBxBUGh09LoxYPlXPsi4t2Tee2uSuST0_QrigCOLcyoBS))))
Sometimes it prints out a different agent key during that spam, not sure why.
What on earth am I doing wrong? D:
(and how do I remove apps from the conductor? I had to create an awful script that just registers apps with an increasing number in its name)