#1591·postiz-app

What happened

Author: PiratePenguin27Created Jun 11, 2026Updated Sep 26, 2026
Labelsstale

On a self-hosted instance, all Skool posts fail to publish. The post moves to ERROR state. The stored error wraps a Skool/CloudFront HTML response:

403 ERROR — The request could not be satisfied. Request blocked. Generated by cloudfront (CloudFront)

Postiz logs it as applicationFailureInfo.type: "bad_body" (nonRetryable) because Skool returns an HTML WAF page instead of JSON.

Stack trace

ApplicationFailure: at SkoolProvider.fetch (/app/libraries/nestjs-libraries/src/integrations/social.abstract.ts:167:11) at SkoolProvider.post (/app/libraries/nestjs-libraries/src/integrations/social/skool.provider.ts:265:7) at PostActivity.postSocial (/app/apps/orchestrator/src/activities/post.activity.ts:171:21) taskQueue: 'skool'

Environment

  • Postiz v2.21.8 (self-hosted, Docker Compose, Temporal orchestrator stack)
  • Server on a hosting/datacenter IP
  • Provider: skool

What I ruled out (all verified)

  • Auth/cookies are valid and fresh — the Skool integration token is populated (512 chars) and was re-captured via the extension on reconnect; tokenExpiration is in the future, refreshNeeded=false, disabled=false. Reconnecting did not fix it.
  • Temporal worker is running and actively processing the skool task queue (the post is attempted, not stuck).
  • Server timezone is correct; posts fire at the scheduled time.
  • Group ID, Label, and Title are all present on the failing post.

Root cause (appears to be)

Skool's API (api2.skool.com) is behind an AWS WAF/CloudFront that blocks non-browser requests. SkoolProvider.post() performs a server-side fetch() with cookie auth but no browser User-Agent (and no Origin/Referer). From a real browser the same account posts fine; from the server it's blocked. Direct test from the server (no Postiz involved):

  • GET https://api2.skool.com/ with no User-Agent → 403 Request blocked
  • same GET with a normal browser User-Agent → passes the WAF (404 from the app) So Skool's edge is rejecting the server's requests by shape/IP. This previously worked, suggesting Skool tightened its WAF.

Expected / suggested fix

  • Route Skool publishing through the browser extension (so the request originates from the user's logged-in browser) — the extension currently only captures cookies at connect time, it doesn't relay the post; or
  • Send browser-like headers (a real User-Agent, and Origin/Referer: https://www.skool.com) on Skool requests so they aren't rejected by Skool's WAF.

Reproduce

  1. Connect a Skool channel on a self-hosted instance running on a datacenter IP.
  2. Schedule/publish any Skool post (with group, label, title).
  3. Post → ERROR with the CloudFront 403 Request blocked body above.