nikivdev/code · error

Some project env vars exist but are not shared with this dev

Error message

Some project env vars exist but are not shared with this device: {}. Re-save them from a device with access, or register this device's sealer and re-share them.

What it means

Error "Some project env vars exist but are not shared with this device: {}. Re-save them from a device with access, or register this device's sealer and re-share them." thrown in nikivdev/code.

Source

Thrown at src/env.rs:1740

        project_name,
        environment,
        &legacy_keys,
        api_url,
        token,
        client,
    )?;
    for (key, value) in legacy.vars {
        entries.vars.entry(key).or_insert(value);
    }
    for (key, description) in legacy.descriptions {
        entries.descriptions.entry(key).or_insert(description);
    }

    inaccessible_keys.retain(|key| !entries.vars.contains_key(key));
    inaccessible_keys.sort();
    inaccessible_keys.dedup();
    if !inaccessible_keys.is_empty() {
        bail!(
            "Some project env vars exist but are not shared with this device: {}. Re-save them from a device with access, or register this device's sealer and re-share them.",
            inaccessible_keys.join(", ")
        );
    }

    Ok(entries)
}

fn write_project_cloud_env_entries(
    project_name: &str,
    environment: &str,
    vars: &HashMap<String, String>,
    descriptions: &HashMap<String, String>,
    api_url: &str,
    token: &str,
    client: &reqwest::blocking::Client,
) -> Result<bool> {
    if vars.is_empty() {

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/env.rs:1740 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/eb8c38d425d4e642. Report an issue: GitHub.