santifer/career-ops · error

getro: needs an https careers_url

Error message

getro: ${entry.name} needs an https careers_url

What it means

The getro provider's fetch() requires the portal entry to carry an https careers_url, obtained via resolveCareersUrl(entry). If that resolver returns null/undefined (no careers_url on the entry, or one that is not https), fetch throws this error naming the entry. Collection resolution and API calls cannot proceed without the page to scrape.

Solutions

  1. Add an https:// careers_url to the getro entry in portals.yml (the Getro-powered careers page, not the API endpoint)
  2. Confirm YAML indentation so careers_url belongs to the same entry as provider: getro
  3. If the URL currently uses http://, change the scheme to https://

Example fix

# before
- name: Acme
  provider: getro
# after
- name: Acme
  provider: getro
  careers_url: https://careers.acme.com
Defensive patterns

Strategy: validation

Validate before calling

for (const entry of entries.filter(e => e.provider === 'getro')) {
  if (typeof entry.careers_url !== 'string' || !entry.careers_url.startsWith('https://')) {
    throw new Error(`getro entry "${entry.name}" must define an https careers_url`);
  }
}

Type guard

function hasHttpsCareersUrl(e) { return typeof e.careers_url === 'string' && /^https:\/\//.test(e.careers_url); }

Try / catch

try {
  await provider.fetch(entry, ctx);
} catch (e) {
  if (String(e.message).includes('needs an https careers_url')) {
    console.error(`Config error on entry "${entry.name}": add careers_url: https://... under the getro provider block`);
    return [];
  }
  throw e;
}

Prevention

When it happens

Trigger: A portals.yml entry with provider: getro omits careers_url entirely, sets it to null/empty, or gives a non-https value (http:// or a bare hostname), so resolveCareersUrl returns null.

Common situations: Copy-pasting an entry template and forgetting careers_url; a YAML indentation mistake leaving the key nested under the wrong entry; deliberately writing http:// and expecting the provider to upgrade it (it won't).

Understand the failure class

Background: "is required", "must be set", "missing required field": configuration validation errors across open-source libraries — this error's family across 36 libraries.

Related errors


AI-assisted analysis of santifer/career-ops@aac998c7ed (2026-09-16). Data as JSON: /api/errors/90c5dcd157a14eec. Report an issue: GitHub.

Appendix: source

Thrown at providers/getro.mjs:208

  return parts.join(', ');
}

/** @type {Provider} */
export default {
  id: 'getro',

  // Getro tenants live on arbitrary vanity domains (careers.atomico.com,
  // talent.cherry.vc, ...) with no common suffix to auto-detect against.
  // Still reports a hit when `getro_collection` is set explicitly, so
  // verify-portals has a probe URL for those entries without a live fetch.
  detect(entry) {
    const id = resolveCollectionOverride(entry);
    return id ? { url: `${API_BASE}/${id}/search/jobs` } : null;
  },

  async fetch(entry, ctx) {
    const careersUrl = resolveCareersUrl(entry);
    if (!careersUrl) throw new Error(`getro: ${entry.name} needs an https careers_url`);

    const collectionId = await resolveCollectionId(entry, ctx, careersUrl);
    const apiUrl = `${API_BASE}/${collectionId}/search/jobs`;

    const requestedMaxPages = Number.isInteger(entry.getro_max_pages) && entry.getro_max_pages > 0
      ? Math.min(entry.getro_max_pages, HARD_MAX_PAGES) : DEFAULT_MAX_PAGES;
    const ctxCap = Number.isInteger(ctx?.maxPages) && ctx.maxPages > 0 ? ctx.maxPages : Infinity;
    const maxPages = Math.min(requestedMaxPages, ctxCap);

    const maxAgeDays = Number.isFinite(entry.getro_max_age_days) && entry.getro_max_age_days >= 0
      ? entry.getro_max_age_days : DEFAULT_MAX_AGE_DAYS;
    const cutoffMs = maxAgeDays > 0 ? Date.now() - maxAgeDays * 86_400_000 : 0;

    const out = [];
    let total = Infinity;
    for (let page = 0; page < maxPages && page * HITS_PER_PAGE < total; page++) {
      if (page > 0) await sleep(INTER_PAGE_DELAY_MS, ctx);

View on GitHub (pinned to aac998c7ed)