santifer/career-ops · error · Error
jobspresso: URL must use HTTPS
Error message
jobspresso: URL must use HTTPS: ${url} What it means
assertJobspressoUrl requires the https: protocol. Any URL that parses but uses http:// (or another scheme) is rejected — Jobspresso's feed is only fetched over TLS to protect request integrity and prevent downgrade/SSRF variants. This check runs after parseability and before the hostname allowlist.
Solutions
- Change the scheme to https:// in the portals.yml entry
- Fix any underlying TLS problem instead of downgrading to http
- Do not point this provider at non-https mirrors — it hard-requires TLS
Example fix
// before
assertJobspressoUrl('http://jobspresso.co/?feed=job_feed');
// after
assertJobspressoUrl('https://jobspresso.co/?feed=job_feed'); Defensive patterns
Strategy: validation
Validate before calling
function isHttpsJobspresso(url) {
try { return new URL(url).protocol === 'https:'; } catch { return false; }
} Type guard
function requireHttps(u) {
const p = URL.canParse(u) ? new URL(u) : null;
if (!p || p.protocol !== 'https:') throw new TypeError(`not https: ${u}`);
return p;
} Try / catch
try {
assertJobspressoUrl(u);
} catch (e) {
if (/must use HTTPS/.test(e.message)) {
console.error('Jobspresso feed requires https:// — fix the scheme in portals.yml');
return [];
}
throw e;
} Prevention
- Never configure http:// for job board feeds
- Let templates default to https:// so the scheme is never typed manually
- Treat any TLS problem as a cert fix, not a downgrade to http
When it happens
Trigger: Calling assertJobspressoUrl with 'http://jobspresso.co/?feed=job_feed' or any other non-https scheme that parses as a valid URL.
Common situations: http:// pasted into the job_boards config; an internal http-only staging mirror configured for the provider; tooling that strips the 's' during config templating.
Understand the failure class
Background: "Invalid URL" errors: why new URL(), URI.parse, and reqwest::Url reject your string — missing scheme, whitespace, and bad path format — this error's family across 39 libraries.
Related errors
- jobbankca: URL must use HTTPS
- a16z-speedrun-talent: URL must use HTTPS
- agentic-jobs: URL must use HTTPS
- collage: URL must use HTTPS
- getonbrd: URL must use HTTPS
AI-assisted analysis of santifer/career-ops@aac998c7ed (2026-09-16).
Data as JSON: /api/errors/827ca5e7a356d850.
Report an issue: GitHub.
Appendix: source
Thrown at providers/jobspresso.mjs:24
// (https://jobspresso.co/?feed=job_feed). The feed is public, no-auth,
// and XML, so it is parsed in-process with the same tiny tag extractor
// approach as providers/personio.mjs rather than adding an XML dependency.
//
// Wire in via a `job_boards:` entry with `provider: jobspresso`.
const FEED_URL = 'https://jobspresso.co/?feed=job_feed';
const TRUSTED_HOST = 'jobspresso.co';
/** @param {string} url */
function assertJobspressoUrl(url) {
let parsed;
try {
parsed = new URL(url);
} catch {
throw new Error(`jobspresso: invalid URL: ${url}`);
}
if (parsed.protocol !== "https:")
throw new Error(`jobspresso: URL must use HTTPS: ${url}`);
if (parsed.hostname !== TRUSTED_HOST) {
throw new Error(
`jobspresso: untrusted hostname "${parsed.hostname}" - must be ${TRUSTED_HOST}`,
);
}
return url;
}
// NaN-safe Date.parse - `|| undefined` would also coerce a valid epoch 0.
function toEpochMs(value) {
if (!value) return undefined;
const parsed = Date.parse(value);
return Number.isNaN(parsed) ? undefined : parsed;
}
/** @type {Provider} */
export default {
id: "jobspresso",View on GitHub (pinned to aac998c7ed)