tinyhumansai/openhuman · error · anyhow::Error

no integration client — user not signed in

Error message

no integration client — user not signed in

What it means

The LinkedIn enrichment pipeline needs the hosted integration client to reach Composio/Apify, but the user is not signed in, so no integration client could be constructed. The pipeline aborts before any enrichment stage runs.

Solutions

  1. Have the user sign in to the hosted backend and retry the enrichment
  2. Skip the enrichment pipeline gracefully and let onboarding continue without a PROFILE.md
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/agent/learning/linkedin_enrichment.rs:118 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/0de1bb65aa1c9aa5. Report an issue: GitHub.

Appendix: source

Thrown at src/openhuman/agent/learning/linkedin_enrichment.rs:118

        tracing::info!(
            path = %profile_path.display(),
            "[linkedin_enrichment] PROFILE.md already exists — skipping pipeline"
        );
        result
            .log
            .push("PROFILE.md already exists — skipping enrichment.".into());
        for id in ["gmail-search", "apify-scrape", "build-profile"] {
            result.stages.push(EnrichmentStage {
                id: id.into(),
                status: StageStatus::Skipped,
                detail: Some("PROFILE.md already on disk".into()),
            });
        }
        return Ok(result);
    }

    let client = build_client(config)
        .ok_or_else(|| anyhow::anyhow!("no integration client — user not signed in"))?;

    // ── Stage 1: search Gmail for LinkedIn emails ───────────────────
    let profile_url = if let Some(url) = preset_profile_url {
        tracing::info!(url = %url, "[linkedin_enrichment] stage 1: using preset profile URL");
        result
            .log
            .push(format!("Using preset LinkedIn profile: {url}"));
        result.stages.push(EnrichmentStage {
            id: "gmail-search".into(),
            status: StageStatus::Success,
            detail: Some(url.clone()),
        });
        Some(url)
    } else {
        tracing::info!("[linkedin_enrichment] stage 1: searching Gmail for LinkedIn emails");
        result
            .log
            .push("Searching Gmail for LinkedIn emails...".into());

View on GitHub (pinned to 7491200858)