Use the response status and the checks below to narrow down common problems when a website reads published Postparticle content.
POSTPARTICLE_URL is the reachable base URL of the Postparticle deployment, without an extra API path.POSTPARTICLE_PROJECT matches the project ID that owns the published content..env.local.The public content API does not use Spaces credentials or browser cookies. Keep any unrelated server credentials out of client code.
Treat a 404 as a missing page where appropriate. The Next.js example maps an article 404 to notFound().
Validate listing parameters before sending the API request:
q: no more than 200 characters; tag: no more than 60 characters.order: asc or desc.page: whole number from 1 to 100000; pageSize: whole number from 1 to 100.URLSearchParams.A 503 means the request could not be served because of a storage or configuration problem. Check the Postparticle deployment health and server logs. A network failure can also indicate an incorrect host, DNS issue, or blocked outbound request from the website host.
Handle these failures in your website’s error boundary and provide a retry path where it makes sense. Avoid retry loops that keep sending requests while the service is unavailable.
The article metadata endpoint uses a 45-second edge freshness window and up to 15 seconds of stale-while-revalidate. The website may also cache its server-rendered route, browser router response, or CDN output.
Check the website’s fetch policy and CDN configuration. Next.js revalidation refreshes on a later request; it is not an immediate purge. Use cache: "no-store" to bypass the website’s fetch cache; it does not bypass the metadata endpoint’s edge freshness or stale-while-revalidate windows.