{"record":{"id":"90c5dcd157a14eec","repo":"santifer/career-ops","slug":"getro-entry-name-needs-an-https-careers-url","errorCode":null,"errorMessage":"getro: ${entry.name} needs an https careers_url","messagePattern":"getro: (.+?) needs an https careers_url","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"providers/getro.mjs","lineNumber":208,"sourceCode":"  return parts.join(', ');\n}\n\n/** @type {Provider} */\nexport default {\n  id: 'getro',\n\n  // Getro tenants live on arbitrary vanity domains (careers.atomico.com,\n  // talent.cherry.vc, ...) with no common suffix to auto-detect against.\n  // Still reports a hit when `getro_collection` is set explicitly, so\n  // verify-portals has a probe URL for those entries without a live fetch.\n  detect(entry) {\n    const id = resolveCollectionOverride(entry);\n    return id ? { url: `${API_BASE}/${id}/search/jobs` } : null;\n  },\n\n  async fetch(entry, ctx) {\n    const careersUrl = resolveCareersUrl(entry);\n    if (!careersUrl) throw new Error(`getro: ${entry.name} needs an https careers_url`);\n\n    const collectionId = await resolveCollectionId(entry, ctx, careersUrl);\n    const apiUrl = `${API_BASE}/${collectionId}/search/jobs`;\n\n    const requestedMaxPages = Number.isInteger(entry.getro_max_pages) && entry.getro_max_pages > 0\n      ? Math.min(entry.getro_max_pages, HARD_MAX_PAGES) : DEFAULT_MAX_PAGES;\n    const ctxCap = Number.isInteger(ctx?.maxPages) && ctx.maxPages > 0 ? ctx.maxPages : Infinity;\n    const maxPages = Math.min(requestedMaxPages, ctxCap);\n\n    const maxAgeDays = Number.isFinite(entry.getro_max_age_days) && entry.getro_max_age_days >= 0\n      ? entry.getro_max_age_days : DEFAULT_MAX_AGE_DAYS;\n    const cutoffMs = maxAgeDays > 0 ? Date.now() - maxAgeDays * 86_400_000 : 0;\n\n    const out = [];\n    let total = Infinity;\n    for (let page = 0; page < maxPages && page * HITS_PER_PAGE < total; page++) {\n      if (page > 0) await sleep(INTER_PAGE_DELAY_MS, ctx);\n","sourceCodeStart":190,"sourceCodeEnd":226,"githubUrl":"https://github.com/santifer/career-ops/blob/aac998c7ed7248ea853b720ceeb1fdbeb322fc5d/providers/getro.mjs#L190-L226","documentation":"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.","triggerScenarios":"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.","commonSituations":"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).","solutions":["Add an https:// careers_url to the getro entry in portals.yml (the Getro-powered careers page, not the API endpoint)","Confirm YAML indentation so careers_url belongs to the same entry as provider: getro","If the URL currently uses http://, change the scheme to https://"],"exampleFix":"# before\n- name: Acme\n  provider: getro\n# after\n- name: Acme\n  provider: getro\n  careers_url: https://careers.acme.com","handlingStrategy":"validation","validationCode":"for (const entry of entries.filter(e => e.provider === 'getro')) {\n  if (typeof entry.careers_url !== 'string' || !entry.careers_url.startsWith('https://')) {\n    throw new Error(`getro entry \"${entry.name}\" must define an https careers_url`);\n  }\n}","typeGuard":"function hasHttpsCareersUrl(e) { return typeof e.careers_url === 'string' && /^https:\\/\\//.test(e.careers_url); }","tryCatchPattern":"try {\n  await provider.fetch(entry, ctx);\n} catch (e) {\n  if (String(e.message).includes('needs an https careers_url')) {\n    console.error(`Config error on entry \"${entry.name}\": add careers_url: https://... under the getro provider block`);\n    return [];\n  }\n  throw e;\n}","preventionTips":["When creating getro entries, always pair provider: getro with an https careers_url in the same YAML block","Check indentation — a mis-nested key silently leaves careers_url undefined on the entry","Lint portals.yml for provider entries missing required fields before running scans"],"tags":["config","missing-field","getro","careers-url"],"backgroundTag":"missing-required-config-field","analyzedSha":"aac998c7ed7248ea853b720ceeb1fdbeb322fc5d","analyzedAt":"2026-09-16T06:35:29.214Z","contentChangedAt":"2026-09-16T06:35:29.214Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}