santifer/career-ops · error
consider: needs a 'consider_board' id in portals.yml
Error message
consider: ${entry.name} needs a 'consider_board' id in portals.yml What it means
The Consider provider drives a per-company board via a 'consider_board' id; fetch checks entry.consider_board right after the origin check and throws when it is absent or falsy. The board id identifies which job list to POST for during the CSRF-handshake request, so without it the provider cannot construct a valid request even with a good careers_url. It is a required-config-field error scoped to portals.yml entries.
Solutions
- Add consider_board: <id> to the entry in portals.yml; find the id in the company's Consider careers widget/embed or the board parameter of their jobs page requests.
- Check YAML indentation so consider_board sits on the entry itself, not a sibling/nested mapping.
- Confirm the value is non-empty — an empty string or 0 is falsy and triggers the same throw.
- Cross-check against a known-working consider entry in portals.yml for the exact key spelling and shape.
Example fix
// before - name: mycompany provider: consider careers_url: https://jobs.mycompany.com // after - name: mycompany provider: consider careers_url: https://jobs.mycompany.com consider_board: 1a2b3c
Defensive patterns
Strategy: validation
Validate before calling
if (entry.provider === 'consider' && !entry.consider_board) { throw new Error(`consider entry '${entry.name}' is missing consider_board`); } Type guard
const hasConsiderBoard = (entry) => typeof entry.consider_board === 'string' && entry.consider_board.length > 0;
Prevention
- Extract the board id from the company's Consider careers widget/embed at onboarding time and record it immediately
- Keep careers_url and consider_board as a pair in a config template for consider entries
- Check YAML nesting so consider_board lands on the entry, not a sibling key
- Audit portals.yml periodically for consider entries missing the board id
When it happens
Trigger: Scanning an entry with provider: consider and a valid https careers_url but no consider_board key (or an empty string/0 value that is falsy).
Common situations: Adding a Consider-hosted company and capturing its careers_url but missing the board id from the widget embed or page source; an entry converted from another provider that never carried consider_board; a YAML indentation mistake nesting consider_board under the wrong key so it never reaches the entry.
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
- comeet: cannot derive API URL for
- consider: needs an https careers_url on a public host
- csod: cannot resolve careersite URL for
- apify: entry has invalid field_map. Each of title, url…
- apify: entry missing 'actor' (e.g. misceres/indeed-scraper)
AI-assisted analysis of santifer/career-ops@aac998c7ed (2026-09-16).
Data as JSON: /api/errors/c326befe5123a95b.
Report an issue: GitHub.
Appendix: source
Thrown at providers/consider.mjs:151
if (Array.isArray(job.normalizedLocations) && job.normalizedLocations.length) {
return job.normalizedLocations.map(l => l?.label || l?.value).filter(Boolean).join(', ');
}
return job.remote ? 'Remote' : '';
}
/** @type {Provider} */
export default {
id: 'consider',
detect(entry) {
const origin = resolveOrigin(entry);
return entry.consider_board && origin ? { url: origin + ENDPOINT_PATH } : null;
},
async fetch(entry, ctx) {
const origin = resolveOrigin(entry);
if (!origin) throw new Error(`consider: ${entry.name} needs an https careers_url on a public host`);
if (!entry.consider_board) throw new Error(`consider: ${entry.name} needs a 'consider_board' id in portals.yml`);
const size = Number.isInteger(entry.consider_size) && entry.consider_size > 0 ? entry.consider_size : DEFAULT_SIZE;
// Perform the CSRF handshake before the POST. ctx._acquireHandshake is a
// test seam: set it to a stub in unit tests so no real network call is made.
const { cookie, csrfToken } = await (
typeof ctx._acquireHandshake === 'function'
? ctx._acquireHandshake(origin)
: acquireCsrfHandshake(origin)
);
const csrfHeaders = {};
if (cookie) csrfHeaders.cookie = cookie;
if (csrfToken) csrfHeaders['x-csrf-token'] = csrfToken;
const json = await ctx.fetchJson(origin + ENDPOINT_PATH, {
method: 'POST',
// redirect:'error' so a 3xx from the (config-driven) board host can't be
// followed to a private/metadata IP — the host guard above pins the first hop.View on GitHub (pinned to aac998c7ed)