Holochain Forum

Get_links causing timeout

I’m experiencing some sort of timeout error when calling hdk::api::get_links.

I’m running tests for holo.txt under 0.0.42-alpha5

☯ DEBUG 2020-01-16 12:01:54 [holochain::app] ZomeFnCall { id: ProcessUniqueId { prefix: 7, offset: 241 }, zome_name: "txt", cap: CapabilityRequest { cap_token: HashString("QmSR1MSmEYJ6T6ZVWiSjytqxPW1RqwxSLXnnQfbxVoxY8w"), provenance: Provenance(HashString("HcScI4u35UFByCtxzkp94Ogs3Impejf4p6FreAB8x8iO8fhzcy4zIC3uhobcdzi"), Signature("r5NhgYF6BxCpK2Noq2je2ClZvstsnpkotqcek3/KOvHk+BEyA5IfZGBdFZcmSSAWbFUer7pZiD1eqwztrux2DA==")) }, fn_name: "list_texts", parameters: JsonString("{\"agent_address\":\"HcScI4u35UFByCtxzkp94Ogs3Impejf4p6FreAB8x8iO8fhzcy4zIC3uhobcdzi\"}") } crates/core/src/nucleus/ribosome/api/get_links.rs:19 zome/get_links: invoke_get_links called with GetLinksArgs { entry_address: HashString("HcScI4u35UFByCtxzkp94Ogs3Impejf4p6FreAB8x8iO8fhzcy4zIC3uhobcdzi"), link_type: "^author_text$", tag: ".*", options: GetLinksOptions { status_request: Live, headers: false, timeout: Timeout(60000) } }
☯ DEBUG 2020-01-16 12:01:54 [holochain_net::sim2h_worker] net_worker_thread/puid-4-30 crates/net/src/sim2h_worker.rs:572 CORE >> Sim2h: QueryEntry(QueryEntryData { space_address: SpaceHash(HashString("QmQVU27pQQqTh1poZqwF4R4Qhe4GGe3VpFzpy59gNH6ext")), entry_address: EntryHash(HashString("HcScI4u35UFByCtxzkp94Ogs3Impejf4p6FreAB8x8iO8fhzcy4zIC3uhobcdzi")), request_id: "puid-c-2", requester_agent_id: AgentPubKey(HashString("HcScI4u35UFByCtxzkp94Ogs3Impejf4p6FreAB8x8iO8fhzcy4zIC3uhobcdzi")), query: "{\"GetLinks\":[\"^author_text$\",\".*\",\"live\",{\"Links\":{\"headers\":false}}]}" })
☯ DEBUG 2020-01-16 12:01:54 [holochain_net::sim2h_worker] net_worker_thread/puid-4-30 crates/net/src/sim2h_worker.rs:235 WireMessage: queueing ClientToLib3h(QueryEntry(QueryEntryData { space_address: SpaceHash(HashString("QmQVU27pQQqTh1poZqwF4R4Qhe4GGe3VpFzpy59gNH6ext")), entry_address: EntryHash(HashString("HcScI4u35UFByCtxzkp94Ogs3Impejf4p6FreAB8x8iO8fhzcy4zIC3uhobcdzi")), request_id: "puid-c-2", requester_agent_id: AgentPubKey(HashString("HcScI4u35UFByCtxzkp94Ogs3Impejf4p6FreAB8x8iO8fhzcy4zIC3uhobcdzi")), query: "{\"GetLinks\":[\"^author_text$\",\".*\",\"live\",{\"Links\":{\"headers\":false}}]}" }))
☯ DEBUG 2020-01-16 12:01:54 [holochain_metrics::logger] net_worker_thread/puid-4-30 crates/metrics/src/logger.rs:24 2020-01-16 11:01:54  METRIC sim2h_worker.tick.latency 0
☯ WARN 2020-01-16 12:01:56 [holochain_net::sim2h_worker] net_worker_thread/puid-4-30 crates/net/src/sim2h_worker.rs:153 BACKOFF attempting reconnect, connection state: None
☯ DEBUG 2020-01-16 12:01:56 [holochain_net::sim2h_worker] net_worker_thread/puid-4-30 crates/net/src/sim2h_worker.rs:127 BACKOFF setting reconnect interval to 8000

State dump:

☸ Nucleus:
☸ ========
☸ Queued zome calls: []
☸ Running zome calls: [(ZomeFnCall { id: ProcessUniqueId { prefix: 7, offset: 241 }, zome_name: "txt", cap: CapabilityRequest { cap_token: HashString("QmSR1MSmEYJ6T6ZVWiSjytqxPW1RqwxSLXnnQfbxVoxY8w"), provenance: Provenance(HashString("HcScI4u35UFByCtxzkp94Ogs3Impejf4p6FreAB8x8iO8fhzcy4zIC3uhobcdzi"), Signature("r5NhgYF6BxCpK2Noq2je2ClZvstsnpkotqcek3/KOvHk+BEyA5IfZGBdFZcmSSAWbFUer7pZiD1eqwztrux2DA==")) }, fn_name: "list_texts", parameters: JsonString("{\"agent_address\":\"HcScI4u35UFByCtxzkp94Ogs3Impejf4p6FreAB8x8iO8fhzcy4zIC3uhobcdzi\"}") }, Some(ZomeFnCallState { hdk_fn_invocations: [] }))]
☸ Zome call results: []
☸ --------------------
☸ 
☸ Network:
☸ --------
☸ Running query flows: [Links(GetLinksKey { base_address: HashString("HcScI4u35UFByCtxzkp94Ogs3Impejf4p6FreAB8x8iO8fhzcy4zIC3uhobcdzi"), link_type: "^author_text$", tag: ".*", id: "puid-c-2" })]
☸ ------------------------
☸ Running VALIDATION PACKAGE requests: []
☸ ------------------------------------
☸ Running DIRECT MESSAGES: []

Perhaps this is related to the following post?

@btakita, were you able to resolve your issue?

SOLVED.

Switching from wss:// to ws:// in conductor and testing configs did the trick.

2 Likes