Broken links from Slack or Airtable gives 404 error
Anna V:
Verkar fortfarande vara något tokigt @Kristian
Kristian:
Broken Opportunity Links From Slack/Airtable (404) Symptoms:
- Some /opportunities/
links return 404 in the portal. - Not all links fail, only some.
What happened:
- Link data existed in Snowflake (core.obt_evaluated_job_ads / core.obt_consultant_matches).
- The same opportunities were missing in backend Postgres (evaluatedjobads), which is what /jobpostings/{id} uses.
- Daily sync automation (cofinder-cronjob) runs /fetch_latest, but on March 6, 2026 the API pod was in CrashLoopBackOff, and the cron job hung (0/1 completion).
- Result: Snowflake was up to date, Postgres was stale, so links 404’d.
How we fixed it:
- Ran manual full sync on backend:
curl -i “https://cofinder-api.platform.datadrivet.ai/fetch_tables”
-H “Authorization: Bearer"
- Sync inserted missing rows and links started working again.
How to diagnose quickly next time:
- Pick a failing UUID.
- Verify it exists in Snowflake.
- Verify it exists in Postgres.
- Check cron job status:
kubectl -n cofinder-api get cronjob kubectl -n cofinder-api get job –sort-by=.metadata.creationTimestamp | tail -n 5
If latest job is 0/1, sync likely failed/hung.
