# Scheduled retry job runs every 6 hours and never does anything (401 every time)

> The pg_cron job sent the cron shared secret to a route protected by admin-user auth, so every call returned 401 and was ignored.

Web page: https://davidewins.com/errors/cron-secret-posted-to-admin-only-route

Other. Confirmed fix, 21 September 2026.

Versions: pg_cron + pg_net calling an Express API

There is no error message for this one, only the symptom in the title.

## Cause

The pg_cron job sent the cron shared secret to a route protected by admin-user auth, so every call returned 401 and was ignored. The job looked scheduled and healthy.

## Fix

Check `net._http_response` for the job's status codes. Point the job at a route that authenticates the cron secret (or run the work inside an existing cron route that does), and add a test that the route accepts the cron credential.

## More Other errors

- [eas-cli fails instantly with no route to host while dig shows a healthy IPv4 address](https://davidewins.com/errors/tailscale-magicdns-ipv6-only-eas-cli)
- [Web haptics do nothing on iPhone Safari (iOS 26)](https://davidewins.com/errors/ios-web-haptics-scripted-click-ignored)
- [adb connect fails after pairing over Wi-Fi](https://davidewins.com/errors/adb-wireless-pairing-port-vs-connect-port)
- [Time-limited offers expire instantly in local development](https://davidewins.com/errors/local-clock-skew-expires-offers)
- [Scraped pages have no ratings, but the browser shows them](https://davidewins.com/errors/scraped-ratings-null-pre-hydration-html)

[Search all errors](https://davidewins.com/errors)
