trypost/tests/Feature/Jobs
Paulo Castellano 83ba72ddc6 Stop Meta rate-limit errors from disconnecting Instagram/Threads tokens
TokenRefreshClient classified every non-5xx/429 refresh failure as a dead
token. Meta returns rate-limit (code 4/17) and transient (code 1/2) errors as
HTTP 4xx with type OAuthException, so a throttled proactive refresh was
disconnecting still-valid Instagram/Threads tokens — and the wider 24h/15-min
refresh cadence raised the odds of hitting it.

Classification now keys on error code 190 (the signal the publish exceptions
already use): only a genuine 190 disconnects; every other Meta 4xx is treated as
transient (PlatformUnavailable) and retried next cycle. The same over-broad
type-based check in verifyInstagram/verifyFacebook/verifyThreads is replaced
with the shared Meta\GraphError helper so verify and refresh agree.
2026-07-03 11:07:54 -03:00
..
PostHog chore: remove legacy plan tiers (starter/plus/pro/max) 2026-06-22 15:31:32 -03:00
PublishPostTest.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
PublishToSocialPlatformTest.php refactor(social): trim verbose comments + harden X chunked upload from review 2026-06-28 20:37:04 -03:00
RefreshSocialTokenTest.php Stop Meta rate-limit errors from disconnecting Instagram/Threads tokens 2026-07-03 11:07:54 -03:00
SendNotificationTest.php feat: notification system with SendNotification job, dialog UI, tests 2026-03-30 16:47:03 -03:00