Troubleshooting
Most refusals in PruneSEO are deliberate and name their cause. This page maps the actual responses to what to do next.
The error envelope
A normal error looks like this:
{
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action",
"details": {}
}
}
code is stable and suitable for branching. message is written for a person.
details carries field-level validation errors or structured context such as a
current version or an active crawl id.
Two exceptions:
- WAF/Sentinel refusals may return a flat body instead of this envelope.
- A crashed process may return a proxy error with no JSON at all.
Quick reference
| Status | Code | Meaning | Fix |
|---|---|---|---|
| 400 | BAD_REQUEST | The request could not be understood | Check method, path and JSON |
| 400 | INVALID_BODY | Body is not valid JSON or not the expected shape | Match the documented fields |
| 400 | NO_ORGANIZATION | No workspace selected | Send X-Organization-ID |
| 401 | UNAUTHORIZED | Not signed in | Sign in or send a valid token |
| 401 | INVALID_TOKEN | Token is malformed, expired or issued for something else | Refresh or sign in again |
| 401 | INVALID_CREDENTIALS | Email/password do not match | Recheck; a locked account reports this too |
| 401 | INVALID_TOTP_CODE | Second-factor code is wrong or expired | Use the current code |
| 401 | INVALID_PENDING_TOKEN | The between-passwords token expired | Sign in again |
| 403 | ACCOUNT_DISABLED | Account is deactivated | Contact an administrator |
| 403 | FORBIDDEN | Permission missing | Grant the permission |
| 403 | EMAIL_NOT_VERIFIED | Address not confirmed | Verify, or resend the email |
| 404 | NOT_FOUND | No such row, or none visible in this workspace | Check the id and workspace |
| 409 | CONFLICT | A state collision | Read the message; often an active crawl |
| 409 | VERSION_CONFLICT | The record changed since you loaded it | Reload and retry with the new version |
| 422 | VALIDATION_ERROR | A field or filter value is invalid | Read details |
| 429 | RATE_LIMITED | Too many attempts | Wait and retry |
| 500 | INTERNAL_ERROR | Server fault | Retry once; the detail is in the log |
| 503 | PAYMENTS_UNAVAILABLE | Stripe is not configured in this deployment | Billing cannot run here |
| 502/503 | PAYMENT_PROVIDER_ERROR | Stripe refused or failed | Read the message; retry later |
Sign-in problems
| What you see | Likely cause |
|---|---|
INVALID_CREDENTIALS every time | Wrong password, unknown email, locked account, or an OAuth-only account |
ACCOUNT_DISABLED | An administrator deactivated the account |
EMAIL_NOT_VERIFIED | The deployment requires verification and the address was never confirmed |
INVALID_LINK | Reset or verification token expired (1 hour and 48 hours respectively) or was already used |
| Login succeeds by API but not in the browser | The account has 2FA enabled; the web login page has no TOTP step |
RATE_LIMITED on login | Too many attempts; the limit is per IP and per route |
| Session stops working | Idle timeout (7 days), absolute lifetime (30 days), or revocation |
A password reset revokes every session. That is expected, not a bug.
Workspace and permission problems
| Message | Meaning |
|---|---|
| “Select an organization first (send the X-Organization-ID header)” | No workspace resolved |
| “Organization not found” | Suspended, deleted, or not a member |
| “You do not have permission to perform this action” | The route's permission is missing |
| “This action requires administrator access to this organization” | Org role is not ADMIN |
| “requires platform administrator access” | Platform authority is required |
| “Website not found” on a real website | Wrong tenant, or the website belongs to another workspace |
The default workspace owner cannot create websites or start crawls under the seeded roles. See Roles and Permissions before hunting for a frontend bug.
Crawl problems
| Message | Meaning |
|---|---|
| “a run is already active on this website (run …)” | One crawl per website; details.active_run_id names it |
| “Crawl run already finished” | Cancel was called after the run closed |
| “Crawl run must finish before it can be analyzed” | Re-analysis was attempted on a live run |
| “Website not found” | Wrong id or wrong workspace |
A run ends partial | A cap or cancellation stopped it; read the stop reason |
A run ends completed_with_errors | The site returned failures; the run still produced a report |
| A crawl is queued for a long time | No worker has claimed it, or the queue is backed up |
If a crawl has no findings, first confirm it finished, was analysed, and fetched the pages. An empty finding list is not proof that a page is healthy.
Website and import problems
| Message | Meaning |
|---|---|
websites.max requires a paid plan | No active entitlements |
websites.max is limited to N and this workspace already has N | No free website slot |
VERSION_CONFLICT | The website changed since it was loaded |
| “This record changed after you loaded it. Reload it and try again.” | Same conflict, with details.current_version |
| Import row failures | Rows beyond the plan ceiling or invalid row data; the job reports row numbers |
| Import returns 202 | Accepted; poll GET /imports/:id |
| Import job not found | Wrong job id, or the job was never created |
A malformed If-Match matches no row and therefore returns a conflict rather
than risking an overwrite.
Billing problems
| Message | Meaning |
|---|---|
| “Only the owner of this workspace can change what it pays for” | Checkout attempted by a member |
| “this account already has a subscription: manage it in the billing portal” | A live subscription already exists |
| “there is an unfinished checkout on this account…” | incomplete subscription; support must clear it |
| “this account has never subscribed, so there is nothing to manage” | Portal opened with no customer |
| “there is no live subscription on this account” | Cancel called with nothing to cancel |
| “this subscription is not ending, so there is nothing to resume” | Resume called without cancel_at_period_end |
PAYMENTS_UNAVAILABLE | Stripe is not configured |
PAYMENT_PROVIDER_ERROR | Stripe rejected the request; message carries its reason |
A webhook may lag a checkout by seconds. Use
POST /subscriptions/refresh?session_id=… to settle the page immediately.
Validation problems
- Unknown
family,severity,confidence,nature,cohort,state,quality,status_classor sort values return 422 naming the field. - Page numbers below 1 become 1; page sizes are clamped (default 20, maximum 100). Pagination does not error.
- A missing required checkout field returns 422 with a
detailsmap. - An unknown plan returns 422 with the list of valid tiers.
When the response is not JSON
A flat HTML or text refusal usually comes from the WAF/Sentinel layer before the application. Common triggers:
- a request body above the edge limit, including CSV imports,
- spreadsheet cells that look like injection payloads,
- malformed multipart uploads.
Retry with a smaller or cleaner payload. If a legitimate import is blocked, contact the operator; the block is at the edge, not in PruneSEO.
A diagnostic checklist
- Status code — tells you the class of problem.
- Code — tells you the exact rule.
- Message and details — names the field, limit or conflicting row.
- Workspace header — confirm
X-Organization-ID. - Role — confirm the caller holds the permission the route requires.
- State — confirm the run/site/subscription is in a state that allows the action.
- Plan — confirm the workspace has an entitlement for the limit.
If the response is INTERNAL_ERROR, retry once. If it repeats, capture the time,
the endpoint and any request id in the response headers for the operator.
Known limitations that look like bugs
- The add-website screens call endpoints that do not exist yet; use the website API.
- The web login cannot complete a TOTP challenge.
- Issues, recommendations, URLs, dashboard and history screens are placeholders.
- The bare website detail link redirects to an unbuilt overview page.
- Access mode and verification status are recorded labels; they do not gate crawling or prove ownership.
- The default workspace owner lacks website/crawl permissions.
- Billing portal, cancel and resume are member-scoped while checkout is owner-only.
- Discovery must be run separately before the first crawl.
- The Search Console settings screen is a placeholder with no backend; there is no Search Console connection, health score, campaign, artifact, schedule or deployment feature.
Back to Getting Started.